summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBjarke Hammersholt Roune <broune@google.com>2015-08-14 22:45:26 +0000
committerBjarke Hammersholt Roune <broune@google.com>2015-08-14 22:45:26 +0000
commit9791ed4705f6202c520123b6c668a3cb28fba3aa (patch)
tree9e03aad471b4ad4b8fcdf916ca464e3e0aaccd39 /llvm/lib/CodeGen
parentb399095c3f6b9030a68eec4aff38a1ee3499ea1f (diff)
downloadbcm5719-llvm-9791ed4705f6202c520123b6c668a3cb28fba3aa.tar.gz
bcm5719-llvm-9791ed4705f6202c520123b6c668a3cb28fba3aa.zip
[SCEV] Apply NSW and NUW flags via poison value analysis for sub, mul and shl
Summary: http://reviews.llvm.org/D11212 made Scalar Evolution able to propagate NSW and NUW flags from instructions to SCEVs for add instructions. This patch expands that to sub, mul and shl instructions. This change makes LSR able to generate pointer induction variables for loops like these, where the index is 32 bit and the pointer is 64 bit: for (int i = 0; i < numIterations; ++i) sum += ptr[i - offset]; for (int i = 0; i < numIterations; ++i) sum += ptr[i * stride]; for (int i = 0; i < numIterations; ++i) sum += ptr[3 * (i << 7)]; Reviewers: atrick, sanjoy Subscribers: sanjoy, majnemer, hfinkel, llvm-commits, meheff, jingyue, eliben Differential Revision: http://reviews.llvm.org/D11860 llvm-svn: 245118
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud