[llvm-commits] CVS: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 16 20:03:01 PST 2004
Changes in directory llvm/lib/Transforms/Utils:
SimplifyCFG.cpp updated: 1.30 -> 1.31
---
Log message:
Fix compilation of mesa, which I broke earlier today
---
Diffs of the changes: (+3 -2)
Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.30 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.31
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.30 Tue Mar 16 13:45:07 2004
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp Tue Mar 16 20:02:47 2004
@@ -691,8 +691,9 @@
}
} else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->begin())) {
- if (FoldValueComparisonIntoPredecessors(SI))
- return SimplifyCFG(BB) || 1;
+ if (isValueEqualityComparison(SI))
+ if (FoldValueComparisonIntoPredecessors(SI))
+ return SimplifyCFG(BB) || 1;
} else if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) {
if (Value *CompVal = isValueEqualityComparison(BB->getTerminator())) {
// This block must be empty, except for the setcond inst, if it exists.
More information about the llvm-commits
mailing list