[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat May 8 17:42:02 PDT 2004
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.200 -> 1.201
---
Log message:
Fix stupid bug in my checkin yesterday
---
Diffs of the changes: (+1 -2)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.200 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.201
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.200 Fri May 7 17:09:22 2004
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Sat May 8 17:41:42 2004
@@ -2624,8 +2624,7 @@
bool EndsWithSequential = false;
for (gep_type_iterator I = gep_type_begin(*cast<User>(PtrOp)),
E = gep_type_end(*cast<User>(PtrOp)); I != E; ++I)
- if (!isa<StructType>(*I))
- EndsWithSequential = true;
+ EndsWithSequential = !isa<StructType>(*I);
// Can we combine the two pointer arithmetics offsets?
if (EndsWithSequential) {
More information about the llvm-commits
mailing list