Changes in directory llvm/lib/Analysis:
ScalarEvolution.cpp updated: 1.111 -> 1.112 --- Log message: Revert last patch. It was already fixed. --- Diffs of the changes: (+1 -6) ScalarEvolution.cpp | 7 +------ 1 files changed, 1 insertion(+), 6 deletions(-) Index: llvm/lib/Analysis/ScalarEvolution.cpp diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.111 llvm/lib/Analysis/ScalarEvolution.cpp:1.112 --- llvm/lib/Analysis/ScalarEvolution.cpp:1.111 Sun Apr 15 20:48:37 2007 +++ llvm/lib/Analysis/ScalarEvolution.cpp Sun Apr 15 21:24:41 2007 @@ -2125,12 +2125,7 @@ // 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)); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits