summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorAnna Thomas <anna@azul.com>2016-07-08 15:18:56 +0000
committerAnna Thomas <anna@azul.com>2016-07-08 15:18:56 +0000
commit3124f6273ab4ce6e6ee6f9b6e8b9781824e6cdb1 (patch)
tree8bba84eb055c68c148b8e25ad073b978038ed794 /llvm/lib/CodeGen
parent68853ab2c5e4c64e9aee003f77ed5008ec8d0fe4 (diff)
downloadbcm5719-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 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud