[llvm-commits] CVS: llvm/lib/Transforms/Utils/CodeExtractor.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Aug 12 20:17:52 PDT 2004
Changes in directory llvm/lib/Transforms/Utils:
CodeExtractor.cpp updated: 1.28 -> 1.29
---
Log message:
When we code extract some stuff, leave the codeRepl block in the place where
the extracted code was, instead of putting it at the end of the function
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Transforms/Utils/CodeExtractor.cpp
diff -u llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.28 llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.29
--- llvm/lib/Transforms/Utils/CodeExtractor.cpp:1.28 Wed Aug 11 22:17:02 2004
+++ llvm/lib/Transforms/Utils/CodeExtractor.cpp Thu Aug 12 22:17:39 2004
@@ -622,7 +622,7 @@
Function *oldFunction = header->getParent();
// This takes place of the original loop
- BasicBlock *codeReplacer = new BasicBlock("codeRepl", oldFunction);
+ BasicBlock *codeReplacer = new BasicBlock("codeRepl", oldFunction, header);
// The new function needs a root node because other nodes can branch to the
// head of the region, but the entry node of a function cannot have preds.
More information about the llvm-commits
mailing list