aboutsummaryrefslogtreecommitdiffstats
path: root/utils/lit
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-10 07:11:16 +0000
committerChris Lattner <sabre@nondot.org>2011-02-10 07:11:16 +0000
commit6cdf2ea98e9952a57768a1fcdce8850089263260 (patch)
tree9e4aba745da2c2ade020bbd6c284111076e96177 /utils/lit
parent81baf14fdfa29c22a08d609144c285169e23a247 (diff)
downloadexternal_llvm-6cdf2ea98e9952a57768a1fcdce8850089263260.zip
external_llvm-6cdf2ea98e9952a57768a1fcdce8850089263260.tar.gz
external_llvm-6cdf2ea98e9952a57768a1fcdce8850089263260.tar.bz2
implement the first part of PR8882: when lowering an inbounds
gep to explicit addressing, we know that none of the intermediate computation overflows. This could use review: it seems that the shifts certainly wouldn't overflow, but could the intermediate adds overflow if there is a negative index? Previously the testcase would instcombine to: define i1 @test(i64 %i) { %p1.idx.mask = and i64 %i, 4611686018427387903 %cmp = icmp eq i64 %p1.idx.mask, 1000 ret i1 %cmp } now we get: define i1 @test(i64 %i) { %cmp = icmp eq i64 %i, 1000 ret i1 %cmp } git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
0 files changed, 0 insertions, 0 deletions