diff options
| author | Owen Anderson <resistor@mac.com> | 2010-08-31 07:48:34 +0000 | 
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2010-08-31 07:48:34 +0000 | 
| commit | 48d58ad64c1aae1d65ff7f2be01b9bce0912dddf (patch) | |
| tree | 120df099b9c5310acf6e82771631b0a639b10890 /llvm/lib/Transforms | |
| parent | d2918a07bd67341c871e2058b4adedbdf012d8d8 (diff) | |
| download | bcm5719-llvm-48d58ad64c1aae1d65ff7f2be01b9bce0912dddf.tar.gz bcm5719-llvm-48d58ad64c1aae1d65ff7f2be01b9bce0912dddf.zip | |
Rename ValuePropagation to a more descriptive CorrelatedValuePropagation.
llvm-svn: 112591
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp | 24 | 
1 files changed, 12 insertions, 12 deletions
| diff --git a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp index 8f398883a2c..9616b9b6ade 100644 --- a/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp +++ b/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp @@ -1,4 +1,4 @@ -//===- ValuePropagation.cpp - Propagate information derived control flow --===// +//===- CorrelatedValuePropagation.cpp - Propagate CFG-derived info --------===//  //  //                     The LLVM Compiler Infrastructure  // @@ -7,11 +7,11 @@  //  //===----------------------------------------------------------------------===//  // -// This file implements the Value Propagation pass. +// This file implements the Correlated Value Propagation pass.  //  //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "value-propagation" +#define DEBUG_TYPE "correlated-value-propagation"  #include "llvm/Transforms/Scalar.h"  #include "llvm/Function.h"  #include "llvm/Instructions.h" @@ -25,7 +25,7 @@ STATISTIC(NumPhis,    "Number of phis propagated");  STATISTIC(NumSelects, "Number of selects propagated");  namespace { -  class ValuePropagation : public FunctionPass { +  class CorrelatedValuePropagation : public FunctionPass {      LazyValueInfo *LVI;      bool processSelect(SelectInst *SI); @@ -33,7 +33,7 @@ namespace {    public:      static char ID; -    ValuePropagation(): FunctionPass(ID) { } +    CorrelatedValuePropagation(): FunctionPass(ID) { }      bool runOnFunction(Function &F); @@ -43,16 +43,16 @@ namespace {    };  } -char ValuePropagation::ID = 0; -INITIALIZE_PASS(ValuePropagation, "value-propagation", +char CorrelatedValuePropagation::ID = 0; +INITIALIZE_PASS(CorrelatedValuePropagation, "correlated-propagation",                  "Value Propagation", false, false);  // Public interface to the Value Propagation pass -Pass *llvm::createValuePropagationPass() { -  return new ValuePropagation(); +Pass *llvm::createCorrelatedValuePropagationPass() { +  return new CorrelatedValuePropagation();  } -bool ValuePropagation::processSelect(SelectInst *S) { +bool CorrelatedValuePropagation::processSelect(SelectInst *S) {    if (S->getType()->isVectorTy()) return false;    Constant *C = LVI->getConstant(S->getOperand(0), S->getParent()); @@ -69,7 +69,7 @@ bool ValuePropagation::processSelect(SelectInst *S) {    return true;  } -bool ValuePropagation::processPHI(PHINode *P) { +bool CorrelatedValuePropagation::processPHI(PHINode *P) {    bool Changed = false;    BasicBlock *BB = P->getParent(); @@ -97,7 +97,7 @@ bool ValuePropagation::processPHI(PHINode *P) {    return Changed;  } -bool ValuePropagation::runOnFunction(Function &F) { +bool CorrelatedValuePropagation::runOnFunction(Function &F) {    LVI = &getAnalysis<LazyValueInfo>();    bool Changed = false; | 

