diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-17 06:33:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-04-17 06:33:57 +0000 |
commit | 86df062791d50b35ae274bbeb8fe2f37944e284a (patch) | |
tree | ca3b3b71ae0fae2f49592797fd727508a961a7e7 /lib | |
parent | 8ca441aad3b2d6101f896885be6d5050a625047b (diff) | |
download | external_llvm-86df062791d50b35ae274bbeb8fe2f37944e284a.zip external_llvm-86df062791d50b35ae274bbeb8fe2f37944e284a.tar.gz external_llvm-86df062791d50b35ae274bbeb8fe2f37944e284a.tar.bz2 |
Revert "SCEV: When expanding a GEP the final addition to the base pointer has NUW but not NSW."
This isn't right either, reverting for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 1d55642..205227c 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -3187,7 +3187,7 @@ const SCEV *ScalarEvolution::createNodeForGEP(GEPOperator *GEP) { // Add the total offset from all the GEP indices to the base. return getAddExpr(BaseS, TotalOffset, - isInBounds ? SCEV::FlagNUW : SCEV::FlagAnyWrap); + isInBounds ? SCEV::FlagNSW : SCEV::FlagAnyWrap); } /// GetMinTrailingZeros - Determine the minimum number of zero bits that S is |