[llvm-commits] CVS: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun May 14 11:45:57 PDT 2006
Changes in directory llvm/lib/Transforms/Utils:
SimplifyCFG.cpp updated: 1.96 -> 1.97
---
Log message:
remove some dead code identified by coverity
---
Diffs of the changes: (+1 -1)
SimplifyCFG.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.96 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.97
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.96 Sun May 14 13:33:57 2006
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp Sun May 14 13:45:44 2006
@@ -118,7 +118,7 @@
// If the PHI nodes in BB are only used by instructions in Succ, we are ok if
// BB and Succ have no common predecessors.
- for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I) && IsSafe; ++I) {
+ for (BasicBlock::iterator I = BB->begin(); isa<PHINode>(I); ++I) {
PHINode *PN = cast<PHINode>(I);
for (Value::use_iterator UI = PN->use_begin(), E = PN->use_end(); UI != E;
++UI)
More information about the llvm-commits
mailing list