Mark the increments of the generated induction variables 'NSW'
In general, all code that we produce is NSW. llvm-svn: 157606
This commit is contained in:
parent
3a275d20dd
commit
400a4ac658
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue