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)
commitb499b73e3019fca9bf93b448e25c25fffe95562a
treedef2fcaf912ea57c0aecc07bb1bad62e44967c9d
parent09d756a7e0b263154d410f9a52dd54850d576427
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230341 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolutionExpander.cpp
test/Analysis/ScalarEvolution/scev-expander-incorrect-nowrap.ll [deleted file]
test/Analysis/ScalarEvolution/zext-signed-addrec.ll
test/CodeGen/AArch64/arm64-scaled_iv.ll
test/CodeGen/X86/avoid_complex_am.ll
test/Transforms/IndVarSimplify/overflowcheck.ll
test/Transforms/IndVarSimplify/pr20680.ll
test/Transforms/LoopStrengthReduce/count-to-zero.ll
test/Transforms/LoopStrengthReduce/uglygep.ll