diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-16 02:24:41 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-16 02:24:41 +0000 |
commit | a3cfb8a683944b08a5a4a04d94852760fdd717b1 (patch) | |
tree | 736141f373573f08932948644af2a6b236c8382e /llvm/lib/Analysis/ScalarEvolution.cpp | |
parent | 2875d2eadcfe72e13e828ac995c5b68ff052d581 (diff) | |
download | bcm5719-llvm-a3cfb8a683944b08a5a4a04d94852760fdd717b1.tar.gz bcm5719-llvm-a3cfb8a683944b08a5a4a04d94852760fdd717b1.zip |
Revert last patch. It was already fixed.
llvm-svn: 36102
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 89067539c32..473eadcd878 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -2125,12 +2125,7 @@ SolveQuadraticEquation(const SCEVAddRecExpr *AddRec) { // Compute the two solutions for the quadratic formula. // The divisions must be performed as signed divisions. APInt NegB(-B); - APInt TwoA( A << Two ); - if (TwoA == 0) { - const Type* Ty = LC->getValue()->getType(); - return std::make_pair(SCEVUnknown::get(UndefValue::get(Ty)), - SCEVUnknown::get(UndefValue::get(Ty))); - } + APInt TwoA( A << 1 ); ConstantInt *Solution1 = ConstantInt::get((NegB + SqrtVal).sdiv(TwoA)); ConstantInt *Solution2 = ConstantInt::get((NegB - SqrtVal).sdiv(TwoA)); |