[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ADCE.cpp BasicBlockPlacement.cpp CodeGenPrepare.cpp CondPropagate.cpp ConstantProp.cpp CorrelatedExprs.cpp DCE.cpp DeadStoreElimination.cpp GCSE.cpp IndVarSimplify.cpp InstructionCombining.cpp LICM.cpp LoopRotation.cpp LoopStrengthReduce.cpp LoopUnroll.cpp LoopUnswitch.cpp LowerGC.cpp LowerPacked.cpp PredicateSimplifier.cpp Reassociate.cpp Reg2Mem.cpp SCCP.cpp ScalarReplAggregates.cpp SimplifyCFG.cpp TailDuplication.cpp TailRecursionElimination.cpp
Devang Patel
dpatel at apple.com
Wed May 2 18:14:04 PDT 2007
Changes in directory llvm/lib/Transforms/Scalar:
ADCE.cpp updated: 1.108 -> 1.109
BasicBlockPlacement.cpp updated: 1.11 -> 1.12
CodeGenPrepare.cpp updated: 1.8 -> 1.9
CondPropagate.cpp updated: 1.20 -> 1.21
ConstantProp.cpp updated: 1.58 -> 1.59
CorrelatedExprs.cpp updated: 1.59 -> 1.60
DCE.cpp updated: 1.65 -> 1.66
DeadStoreElimination.cpp updated: 1.19 -> 1.20
GCSE.cpp updated: 1.55 -> 1.56
IndVarSimplify.cpp updated: 1.117 -> 1.118
InstructionCombining.cpp updated: 1.756 -> 1.757
LICM.cpp updated: 1.98 -> 1.99
LoopRotation.cpp updated: 1.12 -> 1.13
LoopStrengthReduce.cpp updated: 1.133 -> 1.134
LoopUnroll.cpp updated: 1.41 -> 1.42
LoopUnswitch.cpp updated: 1.67 -> 1.68
LowerGC.cpp updated: 1.24 -> 1.25
LowerPacked.cpp updated: 1.23 -> 1.24
PredicateSimplifier.cpp updated: 1.73 -> 1.74
Reassociate.cpp updated: 1.80 -> 1.81
Reg2Mem.cpp updated: 1.14 -> 1.15
SCCP.cpp updated: 1.167 -> 1.168
ScalarReplAggregates.cpp updated: 1.92 -> 1.93
SimplifyCFG.cpp updated: 1.23 -> 1.24
TailDuplication.cpp updated: 1.39 -> 1.40
TailRecursionElimination.cpp updated: 1.32 -> 1.33
---
Log message:
Drop 'const'
---
Diffs of the changes: (+56 -56)
ADCE.cpp | 4 ++--
BasicBlockPlacement.cpp | 4 ++--
CodeGenPrepare.cpp | 4 ++--
CondPropagate.cpp | 4 ++--
ConstantProp.cpp | 4 ++--
CorrelatedExprs.cpp | 4 ++--
DCE.cpp | 8 ++++----
DeadStoreElimination.cpp | 4 ++--
GCSE.cpp | 4 ++--
IndVarSimplify.cpp | 4 ++--
InstructionCombining.cpp | 4 ++--
LICM.cpp | 4 ++--
LoopRotation.cpp | 4 ++--
LoopStrengthReduce.cpp | 4 ++--
LoopUnroll.cpp | 4 ++--
LoopUnswitch.cpp | 4 ++--
LowerGC.cpp | 4 ++--
LowerPacked.cpp | 4 ++--
PredicateSimplifier.cpp | 4 ++--
Reassociate.cpp | 4 ++--
Reg2Mem.cpp | 4 ++--
SCCP.cpp | 8 ++++----
ScalarReplAggregates.cpp | 4 ++--
SimplifyCFG.cpp | 4 ++--
TailDuplication.cpp | 4 ++--
TailRecursionElimination.cpp | 4 ++--
26 files changed, 56 insertions(+), 56 deletions(-)
Index: llvm/lib/Transforms/Scalar/ADCE.cpp
diff -u llvm/lib/Transforms/Scalar/ADCE.cpp:1.108 llvm/lib/Transforms/Scalar/ADCE.cpp:1.109
--- llvm/lib/Transforms/Scalar/ADCE.cpp:1.108 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/ADCE.cpp Wed May 2 20:11:54 2007
@@ -52,7 +52,7 @@
// The public interface for this class
//
public:
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
ADCE() : FunctionPass((intptr_t)&ID) {}
// Execute the Aggressive Dead Code Elimination Algorithm
@@ -107,7 +107,7 @@
}
};
- const char ADCE::ID = 0;
+ char ADCE::ID = 0;
RegisterPass<ADCE> X("adce", "Aggressive Dead Code Elimination");
} // End of anonymous namespace
Index: llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp
diff -u llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.11 llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.12
--- llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.11 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp Wed May 2 20:11:54 2007
@@ -41,7 +41,7 @@
namespace {
struct VISIBILITY_HIDDEN BlockPlacement : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
BlockPlacement() : FunctionPass((intptr_t)&ID) {}
virtual bool runOnFunction(Function &F);
@@ -73,7 +73,7 @@
void PlaceBlocks(BasicBlock *BB);
};
- const char BlockPlacement::ID = 0;
+ char BlockPlacement::ID = 0;
RegisterPass<BlockPlacement> X("block-placement",
"Profile Guided Basic Block Placement");
}
Index: llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
diff -u llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.8 llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.9
--- llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.8 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp Wed May 2 20:11:54 2007
@@ -39,7 +39,7 @@
/// transformation profitability.
const TargetLowering *TLI;
public:
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
CodeGenPrepare(const TargetLowering *tli = 0) : FunctionPass((intptr_t)&ID),
TLI(tli) {}
bool runOnFunction(Function &F);
@@ -55,7 +55,7 @@
};
}
-const char CodeGenPrepare::ID = 0;
+char CodeGenPrepare::ID = 0;
static RegisterPass<CodeGenPrepare> X("codegenprepare",
"Optimize for code generation");
Index: llvm/lib/Transforms/Scalar/CondPropagate.cpp
diff -u llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.20 llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.21
--- llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.20 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/CondPropagate.cpp Wed May 2 20:11:54 2007
@@ -31,7 +31,7 @@
namespace {
struct VISIBILITY_HIDDEN CondProp : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
CondProp() : FunctionPass((intptr_t)&ID) {}
virtual bool runOnFunction(Function &F);
@@ -49,7 +49,7 @@
void RevectorBlockTo(BasicBlock *FromBB, BasicBlock *ToBB);
};
- const char CondProp::ID = 0;
+ char CondProp::ID = 0;
RegisterPass<CondProp> X("condprop", "Conditional Propagation");
}
Index: llvm/lib/Transforms/Scalar/ConstantProp.cpp
diff -u llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.58 llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.59
--- llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.58 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/ConstantProp.cpp Wed May 2 20:11:54 2007
@@ -34,7 +34,7 @@
namespace {
struct VISIBILITY_HIDDEN ConstantPropagation : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
ConstantPropagation() : FunctionPass((intptr_t)&ID) {}
bool runOnFunction(Function &F);
@@ -44,7 +44,7 @@
}
};
- const char ConstantPropagation::ID = 0;
+ char ConstantPropagation::ID = 0;
RegisterPass<ConstantPropagation> X("constprop",
"Simple constant propagation");
}
Index: llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
diff -u llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.59 llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.60
--- llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.59 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp Wed May 2 20:11:54 2007
@@ -225,7 +225,7 @@
std::map<BasicBlock*, RegionInfo> RegionInfoMap;
ETForest *EF;
public:
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
CEE() : FunctionPass((intptr_t)&ID) {}
virtual bool runOnFunction(Function &F);
@@ -288,7 +288,7 @@
bool SimplifyInstruction(Instruction *Inst, const RegionInfo &RI);
};
- const char CEE::ID = 0;
+ char CEE::ID = 0;
RegisterPass<CEE> X("cee", "Correlated Expression Elimination");
}
Index: llvm/lib/Transforms/Scalar/DCE.cpp
diff -u llvm/lib/Transforms/Scalar/DCE.cpp:1.65 llvm/lib/Transforms/Scalar/DCE.cpp:1.66
--- llvm/lib/Transforms/Scalar/DCE.cpp:1.65 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/DCE.cpp Wed May 2 20:11:54 2007
@@ -35,7 +35,7 @@
// DeadInstElimination pass implementation
//
struct VISIBILITY_HIDDEN DeadInstElimination : public BasicBlockPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
DeadInstElimination() : BasicBlockPass(intptr_t(&ID)) {}
virtual bool runOnBasicBlock(BasicBlock &BB) {
bool Changed = false;
@@ -53,7 +53,7 @@
}
};
- const char DeadInstElimination::ID = 0;
+ char DeadInstElimination::ID = 0;
RegisterPass<DeadInstElimination> X("die", "Dead Instruction Elimination");
}
@@ -67,7 +67,7 @@
// DeadCodeElimination pass implementation
//
struct DCE : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
DCE() : FunctionPass((intptr_t)&ID) {}
virtual bool runOnFunction(Function &F);
@@ -77,7 +77,7 @@
}
};
- const char DCE::ID = 0;
+ char DCE::ID = 0;
RegisterPass<DCE> Y("dce", "Dead Code Elimination");
}
Index: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
diff -u llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.19 llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.20
--- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.19 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp Wed May 2 20:11:54 2007
@@ -34,7 +34,7 @@
namespace {
struct VISIBILITY_HIDDEN DSE : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
DSE() : FunctionPass((intptr_t)&ID) {}
virtual bool runOnFunction(Function &F) {
@@ -58,7 +58,7 @@
AU.addPreserved<AliasAnalysis>();
}
};
- const char DSE::ID = 0;
+ char DSE::ID = 0;
RegisterPass<DSE> X("dse", "Dead Store Elimination");
}
Index: llvm/lib/Transforms/Scalar/GCSE.cpp
diff -u llvm/lib/Transforms/Scalar/GCSE.cpp:1.55 llvm/lib/Transforms/Scalar/GCSE.cpp:1.56
--- llvm/lib/Transforms/Scalar/GCSE.cpp:1.55 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/GCSE.cpp Wed May 2 20:11:54 2007
@@ -37,7 +37,7 @@
"with constant values");
namespace {
struct VISIBILITY_HIDDEN GCSE : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
GCSE() : FunctionPass((intptr_t)&ID) {}
virtual bool runOnFunction(Function &F);
@@ -54,7 +54,7 @@
}
};
- const char GCSE::ID = 0;
+ char GCSE::ID = 0;
RegisterPass<GCSE> X("gcse", "Global Common Subexpression Elimination");
}
Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.117 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.118
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.117 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp Wed May 2 20:11:54 2007
@@ -69,7 +69,7 @@
bool Changed;
public:
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
IndVarSimplify() : LoopPass((intptr_t)&ID) {}
bool runOnLoop(Loop *L, LPPassManager &LPM);
@@ -95,7 +95,7 @@
void DeleteTriviallyDeadInstructions(std::set<Instruction*> &Insts);
};
- const char IndVarSimplify::ID = 0;
+ char IndVarSimplify::ID = 0;
RegisterPass<IndVarSimplify> X("indvars", "Canonicalize Induction Variables");
}
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.756 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.757
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.756 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Wed May 2 20:11:54 2007
@@ -76,7 +76,7 @@
TargetData *TD;
bool MustPreserveLCSSA;
public:
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
InstCombiner() : FunctionPass((intptr_t)&ID) {}
/// AddToWorkList - Add the specified instruction to the worklist if it
@@ -361,7 +361,7 @@
Value *EvaluateInDifferentType(Value *V, const Type *Ty, bool isSigned);
};
- const char InstCombiner::ID = 0;
+ char InstCombiner::ID = 0;
RegisterPass<InstCombiner> X("instcombine", "Combine redundant instructions");
}
Index: llvm/lib/Transforms/Scalar/LICM.cpp
diff -u llvm/lib/Transforms/Scalar/LICM.cpp:1.98 llvm/lib/Transforms/Scalar/LICM.cpp:1.99
--- llvm/lib/Transforms/Scalar/LICM.cpp:1.98 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/LICM.cpp Wed May 2 20:11:54 2007
@@ -63,7 +63,7 @@
cl::desc("Disable memory promotion in LICM pass"));
struct VISIBILITY_HIDDEN LICM : public LoopPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
LICM() : LoopPass((intptr_t)&ID) {}
virtual bool runOnLoop(Loop *L, LPPassManager &LPM);
@@ -204,7 +204,7 @@
std::map<Value*, AllocaInst*> &Val2AlMap);
};
- const char LICM::ID = 0;
+ char LICM::ID = 0;
RegisterPass<LICM> X("licm", "Loop Invariant Code Motion");
}
Index: llvm/lib/Transforms/Scalar/LoopRotation.cpp
diff -u llvm/lib/Transforms/Scalar/LoopRotation.cpp:1.12 llvm/lib/Transforms/Scalar/LoopRotation.cpp:1.13
--- llvm/lib/Transforms/Scalar/LoopRotation.cpp:1.12 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/LoopRotation.cpp Wed May 2 20:11:54 2007
@@ -44,7 +44,7 @@
class VISIBILITY_HIDDEN LoopRotate : public LoopPass {
public:
- static const char ID; // Pass ID, replacement for typeid
+ static char ID; // Pass ID, replacement for typeid
LoopRotate() : LoopPass((intptr_t)&ID) {}
// Rotate Loop L as many times as possible. Return true if
@@ -94,7 +94,7 @@
SmallVector<RenameData, MAX_HEADER_SIZE> LoopHeaderInfo;
};
- const char LoopRotate::ID = 0;
+ char LoopRotate::ID = 0;
RegisterPass<LoopRotate> X ("loop-rotate", "Rotate Loops");
}
Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.133 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.134
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.133 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp Wed May 2 20:11:54 2007
@@ -143,7 +143,7 @@
const TargetLowering *TLI;
public:
- static const char ID; // Pass ID, replacement for typeid
+ static char ID; // Pass ID, replacement for typeid
LoopStrengthReduce(const TargetLowering *tli = NULL) :
LoopPass((intptr_t)&ID), TLI(tli) {
}
@@ -188,7 +188,7 @@
Loop *L, bool isOnlyStride);
void DeleteTriviallyDeadInstructions(std::set<Instruction*> &Insts);
};
- const char LoopStrengthReduce::ID = 0;
+ char LoopStrengthReduce::ID = 0;
RegisterPass<LoopStrengthReduce> X("loop-reduce", "Loop Strength Reduction");
}
Index: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.41 llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.42
--- llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.41 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/LoopUnroll.cpp Wed May 2 20:11:54 2007
@@ -49,7 +49,7 @@
class VISIBILITY_HIDDEN LoopUnroll : public LoopPass {
LoopInfo *LI; // The current loop information
public:
- static const char ID; // Pass ID, replacement for typeid
+ static char ID; // Pass ID, replacement for typeid
LoopUnroll() : LoopPass((intptr_t)&ID) {}
bool runOnLoop(Loop *L, LPPassManager &LPM);
@@ -66,7 +66,7 @@
AU.addPreserved<LoopInfo>();
}
};
- const char LoopUnroll::ID = 0;
+ char LoopUnroll::ID = 0;
RegisterPass<LoopUnroll> X("loop-unroll", "Unroll loops");
}
Index: llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.67 llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.68
--- llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.67 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/LoopUnswitch.cpp Wed May 2 20:11:54 2007
@@ -69,7 +69,7 @@
SmallPtrSet<Value *,8> UnswitchedVals;
public:
- static const char ID; // Pass ID, replacement for typeid
+ static char ID; // Pass ID, replacement for typeid
LoopUnswitch() : LoopPass((intptr_t)&ID) {}
bool runOnLoop(Loop *L, LPPassManager &LPM);
@@ -112,7 +112,7 @@
std::vector<Instruction*> &Worklist);
void RemoveLoopFromHierarchy(Loop *L);
};
- const char LoopUnswitch::ID = 0;
+ char LoopUnswitch::ID = 0;
RegisterPass<LoopUnswitch> X("loop-unswitch", "Unswitch loops");
}
Index: llvm/lib/Transforms/Scalar/LowerGC.cpp
diff -u llvm/lib/Transforms/Scalar/LowerGC.cpp:1.24 llvm/lib/Transforms/Scalar/LowerGC.cpp:1.25
--- llvm/lib/Transforms/Scalar/LowerGC.cpp:1.24 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/LowerGC.cpp Wed May 2 20:11:54 2007
@@ -47,7 +47,7 @@
/// had zero roots.
const Type *MainRootRecordType;
public:
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
LowerGC() : FunctionPass((intptr_t)&ID),
GCRootInt(0), GCReadInt(0), GCWriteInt(0),
GCRead(0), GCWrite(0), RootChain(0), MainRootRecordType(0) {}
@@ -58,7 +58,7 @@
const StructType *getRootRecordType(unsigned NumRoots);
};
- const char LowerGC::ID = 0;
+ char LowerGC::ID = 0;
RegisterPass<LowerGC>
X("lowergc", "Lower GC intrinsics, for GCless code generators");
}
Index: llvm/lib/Transforms/Scalar/LowerPacked.cpp
diff -u llvm/lib/Transforms/Scalar/LowerPacked.cpp:1.23 llvm/lib/Transforms/Scalar/LowerPacked.cpp:1.24
--- llvm/lib/Transforms/Scalar/LowerPacked.cpp:1.23 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/LowerPacked.cpp Wed May 2 20:11:54 2007
@@ -40,7 +40,7 @@
class VISIBILITY_HIDDEN LowerPacked
: public FunctionPass, public InstVisitor<LowerPacked> {
public:
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
LowerPacked() : FunctionPass((intptr_t)&ID) {}
/// @brief Lowers packed operations to scalar operations.
@@ -107,7 +107,7 @@
std::vector<Instruction*> instrsToRemove;
};
-const char LowerPacked::ID = 0;
+char LowerPacked::ID = 0;
RegisterPass<LowerPacked>
X("lower-packed",
"lowers packed operations to operations on smaller packed datatypes");
Index: llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp
diff -u llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.73 llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.74
--- llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.73 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp Wed May 2 20:11:54 2007
@@ -1989,7 +1989,7 @@
std::vector<DominatorTree::Node *> WorkList;
public:
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
PredicateSimplifier() : FunctionPass((intptr_t)&ID) {}
bool runOnFunction(Function &F);
@@ -2377,7 +2377,7 @@
}
}
- const char PredicateSimplifier::ID = 0;
+ char PredicateSimplifier::ID = 0;
RegisterPass<PredicateSimplifier> X("predsimplify",
"Predicate Simplifier");
}
Index: llvm/lib/Transforms/Scalar/Reassociate.cpp
diff -u llvm/lib/Transforms/Scalar/Reassociate.cpp:1.80 llvm/lib/Transforms/Scalar/Reassociate.cpp:1.81
--- llvm/lib/Transforms/Scalar/Reassociate.cpp:1.80 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/Reassociate.cpp Wed May 2 20:11:54 2007
@@ -69,7 +69,7 @@
std::map<Value*, unsigned> ValueRankMap;
bool MadeChange;
public:
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
Reassociate() : FunctionPass((intptr_t)&ID) {}
bool runOnFunction(Function &F);
@@ -92,7 +92,7 @@
void RemoveDeadBinaryOp(Value *V);
};
- const char Reassociate::ID = 0;
+ char Reassociate::ID = 0;
RegisterPass<Reassociate> X("reassociate", "Reassociate expressions");
}
Index: llvm/lib/Transforms/Scalar/Reg2Mem.cpp
diff -u llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.14 llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.15
--- llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.14 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/Reg2Mem.cpp Wed May 2 20:11:54 2007
@@ -33,7 +33,7 @@
namespace {
struct VISIBILITY_HIDDEN RegToMem : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
RegToMem() : FunctionPass((intptr_t)&ID) {}
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -78,7 +78,7 @@
}
};
- const char RegToMem::ID = 0;
+ char RegToMem::ID = 0;
RegisterPass<RegToMem> X("reg2mem", "Demote all values to stack slots");
}
Index: llvm/lib/Transforms/Scalar/SCCP.cpp
diff -u llvm/lib/Transforms/Scalar/SCCP.cpp:1.167 llvm/lib/Transforms/Scalar/SCCP.cpp:1.168
--- llvm/lib/Transforms/Scalar/SCCP.cpp:1.167 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/SCCP.cpp Wed May 2 20:11:54 2007
@@ -1334,7 +1334,7 @@
/// Sparse Conditional Constant Propagator.
///
struct VISIBILITY_HIDDEN SCCP : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
SCCP() : FunctionPass((intptr_t)&ID) {}
// runOnFunction - Run the Sparse Conditional Constant Propagation
@@ -1347,7 +1347,7 @@
}
};
- const char SCCP::ID = 0;
+ char SCCP::ID = 0;
RegisterPass<SCCP> X("sccp", "Sparse Conditional Constant Propagation");
} // end anonymous namespace
@@ -1447,12 +1447,12 @@
/// Constant Propagation.
///
struct VISIBILITY_HIDDEN IPSCCP : public ModulePass {
- static const char ID;
+ static char ID;
IPSCCP() : ModulePass((intptr_t)&ID) {}
bool runOnModule(Module &M);
};
- const char IPSCCP::ID = 0;
+ char IPSCCP::ID = 0;
RegisterPass<IPSCCP>
Y("ipsccp", "Interprocedural Sparse Conditional Constant Propagation");
} // end anonymous namespace
Index: llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff -u llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.92 llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.93
--- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.92 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp Wed May 2 20:11:54 2007
@@ -47,7 +47,7 @@
namespace {
struct VISIBILITY_HIDDEN SROA : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
SROA() : FunctionPass((intptr_t)&ID) {}
bool runOnFunction(Function &F);
@@ -84,7 +84,7 @@
static Instruction *isOnlyCopiedFromConstantGlobal(AllocationInst *AI);
};
- const char SROA::ID = 0;
+ char SROA::ID = 0;
RegisterPass<SROA> X("scalarrepl", "Scalar Replacement of Aggregates");
}
Index: llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.23 llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.24
--- llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.23 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/SimplifyCFG.cpp Wed May 2 20:11:54 2007
@@ -35,12 +35,12 @@
namespace {
struct VISIBILITY_HIDDEN CFGSimplifyPass : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
CFGSimplifyPass() : FunctionPass((intptr_t)&ID) {}
virtual bool runOnFunction(Function &F);
};
- const char CFGSimplifyPass::ID = 0;
+ char CFGSimplifyPass::ID = 0;
RegisterPass<CFGSimplifyPass> X("simplifycfg", "Simplify the CFG");
}
Index: llvm/lib/Transforms/Scalar/TailDuplication.cpp
diff -u llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.39 llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.40
--- llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.39 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/TailDuplication.cpp Wed May 2 20:11:54 2007
@@ -43,14 +43,14 @@
class VISIBILITY_HIDDEN TailDup : public FunctionPass {
bool runOnFunction(Function &F);
public:
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
TailDup() : FunctionPass((intptr_t)&ID) {}
private:
inline bool shouldEliminateUnconditionalBranch(TerminatorInst *TI);
inline void eliminateUnconditionalBranch(BranchInst *BI);
};
- const char TailDup::ID = 0;
+ char TailDup::ID = 0;
RegisterPass<TailDup> X("tailduplicate", "Tail Duplication");
}
Index: llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
diff -u llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.32 llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.33
--- llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.32 Wed May 2 16:39:19 2007
+++ llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp Wed May 2 20:11:54 2007
@@ -67,7 +67,7 @@
namespace {
struct VISIBILITY_HIDDEN TailCallElim : public FunctionPass {
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
TailCallElim() : FunctionPass((intptr_t)&ID) {}
virtual bool runOnFunction(Function &F);
@@ -80,7 +80,7 @@
bool CanMoveAboveCall(Instruction *I, CallInst *CI);
Value *CanTransformAccumulatorRecursion(Instruction *I, CallInst *CI);
};
- const char TailCallElim::ID = 0;
+ char TailCallElim::ID = 0;
RegisterPass<TailCallElim> X("tailcallelim", "Tail Call Elimination");
}
More information about the llvm-commits
mailing list