[llvm-commits] CVS: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 2 17:23:53 PDT 2005
Changes in directory llvm/lib/Transforms/Utils:
SimplifyCFG.cpp updated: 1.77 -> 1.78
---
Log message:
use splice instead of remove/insert to avoid some symtab operations
---
Diffs of the changes: (+2 -2)
SimplifyCFG.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.77 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.78
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.77 Tue Aug 2 19:19:45 2005
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp Tue Aug 2 19:23:42 2005
@@ -153,8 +153,8 @@
// *ONLY* had BB as a predecessor, and the PHI node is still valid
// now. Simply move it into Succ, because we know that BB
// strictly dominated Succ.
- BB->getInstList().remove(BB->begin());
- Succ->getInstList().push_front(PN);
+ Succ->getInstList().splice(Succ->begin(),
+ BB->getInstList(), BB->begin());
// We need to add new entries for the PHI node to account for
// predecessors of Succ that the PHI node does not take into
More information about the llvm-commits
mailing list