| commit | 490cfbe2a25aa5034494559065d7b0240308d844 | [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 | e169af5ec1a6121f5356d7690d6226a88420eeb5 | |
| parent | fcb06b4aa596e9b0248c60ab666dbbaf625cc991 [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 llvm-svn: 260612