diff options
| author | Anna Thomas <anna@azul.com> | 2016-07-08 15:18:56 +0000 |
|---|---|---|
| committer | Anna Thomas <anna@azul.com> | 2016-07-08 15:18:56 +0000 |
| commit | 3124f6273ab4ce6e6ee6f9b6e8b9781824e6cdb1 (patch) | |
| tree | 8bba84eb055c68c148b8e25ad073b978038ed794 /openmp | |
| parent | 68853ab2c5e4c64e9aee003f77ed5008ec8d0fe4 (diff) | |
| download | bcm5719-llvm-3124f6273ab4ce6e6ee6f9b6e8b9781824e6cdb1.tar.gz bcm5719-llvm-3124f6273ab4ce6e6ee6f9b6e8b9781824e6cdb1.zip | |
InstCombine rule to fold truncs whose value is available
We can fold truncs whose operand feeds from a load, if the trunc value
is available through a prior load/store.
This change is from: http://reviews.llvm.org/D21246, which folded the
trunc but missed the bitcast or ptrtoint/inttoptr required in the RAUW
call, when the load type didnt match the prior load/store type.
Differential Revision: http://reviews.llvm.org/D21791
llvm-svn: 274853
Diffstat (limited to 'openmp')
0 files changed, 0 insertions, 0 deletions

