[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolutionExpander.cpp
Reid Spencer
reid at x10sys.com
Sat Jan 20 16:30:04 PST 2007
Changes in directory llvm/lib/Analysis:
ScalarEvolutionExpander.cpp updated: 1.12 -> 1.13
---
Log message:
For PR970: http://llvm.org/PR970 :
Clean up handling of isFloatingPoint() and dealing with PackedType.
Patch by Gordon Henriksen!
---
Diffs of the changes: (+1 -2)
ScalarEvolutionExpander.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/lib/Analysis/ScalarEvolutionExpander.cpp
diff -u llvm/lib/Analysis/ScalarEvolutionExpander.cpp:1.12 llvm/lib/Analysis/ScalarEvolutionExpander.cpp:1.13
--- llvm/lib/Analysis/ScalarEvolutionExpander.cpp:1.12 Sun Jan 14 20:27:26 2007
+++ llvm/lib/Analysis/ScalarEvolutionExpander.cpp Sat Jan 20 18:29:25 2007
@@ -123,8 +123,7 @@
// Insert a unit add instruction right before the terminator corresponding
// to the back-edge.
- Constant *One = Ty->isFloatingPoint() ? (Constant*)ConstantFP::get(Ty, 1.0)
- : ConstantInt::get(Ty, 1);
+ Constant *One = ConstantInt::get(Ty, 1);
Instruction *Add = BinaryOperator::createAdd(PN, One, "indvar.next",
(*HPI)->getTerminator());
More information about the llvm-commits
mailing list