summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-04-17 06:33:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-04-17 06:33:57 +0000
commite364d195e9ac67c07d7c3f9f91c78c08e3836139 (patch)
tree5081bd3305618cb2e06e127f91aff7167642979e /llvm/lib/Analysis/ScalarEvolution.cpp
parent13840499df0ff86581e71e80c18abcaa6aa2823e (diff)
downloadbcm5719-llvm-e364d195e9ac67c07d7c3f9f91c78c08e3836139.tar.gz
bcm5719-llvm-e364d195e9ac67c07d7c3f9f91c78c08e3836139.zip
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. llvm-svn: 154910
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 1d55642079a..205227ca0b7 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud