summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/LoopGenerators.cpp
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2012-05-29 09:11:59 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2012-05-29 09:11:59 +0000
commit400a4ac6586460f195c63e78c04ab1016882841d (patch)
treea902aef7c8e3301323f523ca64da6e37ffcedb4b /polly/lib/CodeGen/LoopGenerators.cpp
parent3a275d20ddee5c29f0ee05c8f808d72bc3a001b2 (diff)
downloadbcm5719-llvm-400a4ac6586460f195c63e78c04ab1016882841d.tar.gz
bcm5719-llvm-400a4ac6586460f195c63e78c04ab1016882841d.zip
Mark the increments of the generated induction variables 'NSW'
In general, all code that we produce is NSW. llvm-svn: 157606
Diffstat (limited to 'polly/lib/CodeGen/LoopGenerators.cpp')
-rw-r--r--polly/lib/CodeGen/LoopGenerators.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/LoopGenerators.cpp b/polly/lib/CodeGen/LoopGenerators.cpp
index f56ec4197c1..3688898d70a 100644
--- a/polly/lib/CodeGen/LoopGenerators.cpp
+++ b/polly/lib/CodeGen/LoopGenerators.cpp
@@ -53,7 +53,7 @@ Value *polly::createLoop(Value *LB, Value *UB, Value *Stride,
IV->addIncoming(LB, PreheaderBB);
Stride = Builder.CreateZExtOrBitCast(Stride, LoopIVType);
- Value *IncrementedIV = Builder.CreateAdd(IV, Stride, "polly.next_loopiv");
+ Value *IncrementedIV = Builder.CreateNSWAdd(IV, Stride, "polly.next_loopiv");
// Exit condition.
Value *CMP;
OpenPOWER on IntegriCloud