[llvm-commits] CVS: llvm/lib/Transforms/Utils/BasicBlockUtils.cpp SimplifyCFG.cpp
Misha Brukman
brukman at neo.cs.uiuc.edu
Tue Oct 29 17:05:01 PST 2002
Changes in directory llvm/lib/Transforms/Utils:
BasicBlockUtils.cpp updated: 1.3 -> 1.4
SimplifyCFG.cpp updated: 1.6 -> 1.7
---
Log message:
Fix spelling of `propagate'.
---
Diffs of the changes:
Index: llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff -u llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:1.3 llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:1.4
--- llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:1.3 Mon Jul 29 17:32:08 2002
+++ llvm/lib/Transforms/Utils/BasicBlockUtils.cpp Tue Oct 29 17:04:01 2002
@@ -26,7 +26,7 @@
// Delete the unneccesary instruction now...
BI = BIL.erase(BI);
- // Make sure to propogate a name if there is one already...
+ // Make sure to propagate a name if there is one already...
if (OldName.size() && !V->hasName())
V->setName(OldName, BIL.getParent()->getSymbolTable());
}
Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.6 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.7
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.6 Tue Oct 8 16:36:33 2002
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp Tue Oct 29 17:04:01 2002
@@ -11,7 +11,7 @@
#include <algorithm>
#include <functional>
-// PropogatePredecessors - This gets "Succ" ready to have the predecessors from
+// PropagatePredecessors - This gets "Succ" ready to have the predecessors from
// "BB". This is a little tricky because "Succ" has PHI nodes, which need to
// have extra slots added to them to hold the merge edges from BB's
// predecessors. This function returns true (failure) if the Succ BB already
@@ -19,7 +19,7 @@
//
// Assumption: Succ is the single successor for BB.
//
-static bool PropogatePredecessorsForPHIs(BasicBlock *BB, BasicBlock *Succ) {
+static bool PropagatePredecessorsForPHIs(BasicBlock *BB, BasicBlock *Succ) {
assert(*succ_begin(BB) == Succ && "Succ is not successor of BB!");
if (!isa<PHINode>(Succ->front()))
@@ -112,7 +112,7 @@
// Be careful though, if this transformation fails (returns true) then
// we cannot do this transformation!
//
- if (!PropogatePredecessorsForPHIs(BB, Succ)) {
+ if (!PropagatePredecessorsForPHIs(BB, Succ)) {
//cerr << "Killing Trivial BB: \n" << BB;
BB->replaceAllUsesWith(Succ);
std::string OldName = BB->getName();
More information about the llvm-commits
mailing list