[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp

Reid Spencer reid at x10sys.com
Sun Apr 15 19:25:02 PDT 2007



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));
 






More information about the llvm-commits mailing list