aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/JumpThreading.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-27 07:20:04 +0000
committerChris Lattner <sabre@nondot.org>2008-11-27 07:20:04 +0000
commitc7bcbf6903a741e5252d6003916fb3624be937e5 (patch)
treea89bcb7f43be9415dfdfba911cb9414a6f060c81 /lib/Transforms/Scalar/JumpThreading.cpp
parent109872e36039e3a44c07a2e3272ba6528e78cb62 (diff)
rename ThreadBlock to ProcessBlock, since it does other things than
just simple threading. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60157 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r--lib/Transforms/Scalar/JumpThreading.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/JumpThreading.cpp b/lib/Transforms/Scalar/JumpThreading.cpp
index 4d3a44310b..b6d8ff6b35 100644
--- a/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/lib/Transforms/Scalar/JumpThreading.cpp
@@ -56,7 +56,7 @@ namespace {
JumpThreading() : FunctionPass(&ID) {}
bool runOnFunction(Function &F);
- bool ThreadBlock(BasicBlock *BB);
+ bool ProcessBlock(BasicBlock *BB);
void ThreadEdge(BasicBlock *BB, BasicBlock *PredBB, BasicBlock *SuccBB);
BasicBlock *FactorCommonPHIPreds(PHINode *PN, Constant *CstVal);
@@ -85,7 +85,7 @@ bool JumpThreading::runOnFunction(Function &F) {
AnotherIteration = false;
bool Changed = false;
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
- while (ThreadBlock(I))
+ while (ProcessBlock(I))
Changed = true;
AnotherIteration = Changed;
EverChanged |= Changed;
@@ -187,9 +187,9 @@ static void MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB) {
}
-/// ThreadBlock - If there are any predecessors whose control can be threaded
+/// ProcessBlock - If there are any predecessors whose control can be threaded
/// through to a successor, transform them now.
-bool JumpThreading::ThreadBlock(BasicBlock *BB) {
+bool JumpThreading::ProcessBlock(BasicBlock *BB) {
// If this block has a single predecessor, and if that pred has a single
// successor, merge the blocks. This encourages recursive jump threading
// because now the condition in this block can be threaded through