commit | e5eb067cdaea6f87fa98ff71713a47c38f467d46 | [log] [tgz] |
---|---|---|
author | Quentin Colombet <qcolombet@apple.com> | Thu Feb 11 22:30:41 2016 +0000 |
committer | Quentin Colombet <qcolombet@apple.com> | Thu Feb 11 22:30:41 2016 +0000 |
tree | 4c396ce6e489c5ce7121a972cb50c791cdf94a62 | |
parent | dff48e6497e64f6993184257fa889220b18a8d68 [diff] |
Re-apply r238452, the bug was in clang and was fixed in r260567. Original commit message: [InstCombine] Fold IntToPtr and PtrToInt into preceding loads. Currently we only fold a BitCast into a Load when the BitCast is its only user. Do the same for any no-op cast. Patch by Philip Pfaffe! Differential Revision: http://reviews.llvm.org/D9152 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260612 91177308-0d34-0410-b5e6-96231b3b80d8