Revert r230280: "Bugfix: SCEVExpander incorrectly marks increment operations as no...
authorHans Wennborg <hans@hanshq.net>
Tue, 24 Feb 2015 16:19:29 +0000 (16:19 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 24 Feb 2015 16:19:29 +0000 (16:19 +0000)
commit953d6fb84e58ebb9f9c2aef001d0b138a47b62d5
tree665c4ffd102394a9b6ea95deb7569f019e5c5524
parent275a1756ad113a2a58bba1fd621ba1921e0e94f0
Revert r230280: "Bugfix: SCEVExpander incorrectly marks increment operations as no-wrap"

This caused PR22674, failing this assert:

Instructions.h:2281: llvm::Value* llvm::PHINode::getOperand(unsigned int) const: Assertion `i_nocapture < OperandTraits<PHINode>::operands(this) && "getOperand() out of range!"' failed.

llvm-svn: 230341
llvm/lib/Analysis/ScalarEvolutionExpander.cpp
llvm/test/Analysis/ScalarEvolution/scev-expander-incorrect-nowrap.ll [deleted file]
llvm/test/Analysis/ScalarEvolution/zext-signed-addrec.ll
llvm/test/CodeGen/AArch64/arm64-scaled_iv.ll
llvm/test/CodeGen/X86/avoid_complex_am.ll
llvm/test/Transforms/IndVarSimplify/overflowcheck.ll
llvm/test/Transforms/IndVarSimplify/pr20680.ll
llvm/test/Transforms/LoopStrengthReduce/count-to-zero.ll
llvm/test/Transforms/LoopStrengthReduce/uglygep.ll