[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 14:41:36 PDT 2007



Changes in directory llvm/lib/Transforms/Scalar:

ADCE.cpp updated: 1.107 -> 1.108
BasicBlockPlacement.cpp updated: 1.10 -> 1.11
CodeGenPrepare.cpp updated: 1.7 -> 1.8
CondPropagate.cpp updated: 1.19 -> 1.20
ConstantProp.cpp updated: 1.57 -> 1.58
CorrelatedExprs.cpp updated: 1.58 -> 1.59
DCE.cpp updated: 1.64 -> 1.65
DeadStoreElimination.cpp updated: 1.18 -> 1.19
GCSE.cpp updated: 1.54 -> 1.55
IndVarSimplify.cpp updated: 1.116 -> 1.117
InstructionCombining.cpp updated: 1.755 -> 1.756
LICM.cpp updated: 1.97 -> 1.98
LoopRotation.cpp updated: 1.11 -> 1.12
LoopStrengthReduce.cpp updated: 1.132 -> 1.133
LoopUnroll.cpp updated: 1.40 -> 1.41
LoopUnswitch.cpp updated: 1.66 -> 1.67
LowerGC.cpp updated: 1.23 -> 1.24
LowerPacked.cpp updated: 1.22 -> 1.23
PredicateSimplifier.cpp updated: 1.72 -> 1.73
Reassociate.cpp updated: 1.79 -> 1.80
Reg2Mem.cpp updated: 1.13 -> 1.14
SCCP.cpp updated: 1.166 -> 1.167
ScalarReplAggregates.cpp updated: 1.91 -> 1.92
SimplifyCFG.cpp updated: 1.22 -> 1.23
TailDuplication.cpp updated: 1.38 -> 1.39
TailRecursionElimination.cpp updated: 1.31 -> 1.32
---
Log message:

Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces 
static const int, which defauts PassID based pass identification.


---
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.107 llvm/lib/Transforms/Scalar/ADCE.cpp:1.108
--- llvm/lib/Transforms/Scalar/ADCE.cpp:1.107	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/ADCE.cpp	Wed May  2 16:39:19 2007
@@ -52,7 +52,7 @@
   // The public interface for this class
   //
 public:
-  static const int ID; // Pass identifcation, replacement for typeid
+  static const char ID; // Pass identifcation, replacement for typeid
   ADCE() : FunctionPass((intptr_t)&ID) {}
 
   // Execute the Aggressive Dead Code Elimination Algorithm
@@ -107,7 +107,7 @@
   }
 };
 
-  const int ADCE::ID = 0;
+  const 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.10 llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.11
--- llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.10	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp	Wed May  2 16:39:19 2007
@@ -41,7 +41,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN BlockPlacement : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int BlockPlacement::ID = 0;
+  const 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.7 llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.8
--- llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp:1.7	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp	Wed May  2 16:39:19 2007
@@ -39,7 +39,7 @@
     /// transformation profitability.
     const TargetLowering *TLI;
   public:
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int CodeGenPrepare::ID = 0;
+const 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.19 llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.20
--- llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.19	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/CondPropagate.cpp	Wed May  2 16:39:19 2007
@@ -31,7 +31,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN CondProp : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int CondProp::ID = 0;
+  const 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.57 llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.58
--- llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.57	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/ConstantProp.cpp	Wed May  2 16:39:19 2007
@@ -34,7 +34,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN ConstantPropagation : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const char ID; // Pass identifcation, replacement for typeid
     ConstantPropagation() : FunctionPass((intptr_t)&ID) {}
 
     bool runOnFunction(Function &F);
@@ -44,7 +44,7 @@
     }
   };
 
-  const int ConstantPropagation::ID = 0;
+  const 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.58 llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.59
--- llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.58	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp	Wed May  2 16:39:19 2007
@@ -225,7 +225,7 @@
     std::map<BasicBlock*, RegionInfo> RegionInfoMap;
     ETForest *EF;
   public:
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int CEE::ID = 0;
+  const 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.64 llvm/lib/Transforms/Scalar/DCE.cpp:1.65
--- llvm/lib/Transforms/Scalar/DCE.cpp:1.64	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/DCE.cpp	Wed May  2 16:39:19 2007
@@ -35,7 +35,7 @@
   // DeadInstElimination pass implementation
   //
   struct VISIBILITY_HIDDEN DeadInstElimination : public BasicBlockPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int DeadInstElimination::ID = 0;
+  const char DeadInstElimination::ID = 0;
   RegisterPass<DeadInstElimination> X("die", "Dead Instruction Elimination");
 }
 
@@ -67,7 +67,7 @@
   // DeadCodeElimination pass implementation
   //
   struct DCE : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const char ID; // Pass identifcation, replacement for typeid
     DCE() : FunctionPass((intptr_t)&ID) {}
 
     virtual bool runOnFunction(Function &F);
@@ -77,7 +77,7 @@
     }
  };
 
-  const int DCE::ID = 0;
+  const 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.18 llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.19
--- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.18	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp	Wed May  2 16:39:19 2007
@@ -34,7 +34,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN DSE : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int DSE::ID = 0;
+  const 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.54 llvm/lib/Transforms/Scalar/GCSE.cpp:1.55
--- llvm/lib/Transforms/Scalar/GCSE.cpp:1.54	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/GCSE.cpp	Wed May  2 16:39:19 2007
@@ -37,7 +37,7 @@
                           "with constant values");
 namespace {
   struct VISIBILITY_HIDDEN GCSE : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const char ID; // Pass identifcation, replacement for typeid
     GCSE() : FunctionPass((intptr_t)&ID) {}
 
     virtual bool runOnFunction(Function &F);
@@ -54,7 +54,7 @@
     }
   };
 
-  const int GCSE::ID = 0;
+  const 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.116 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.117
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.116	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp	Wed May  2 16:39:19 2007
@@ -69,7 +69,7 @@
     bool Changed;
   public:
 
-   static const int ID; // Pass identifcation, replacement for typeid
+   static const 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 int IndVarSimplify::ID = 0;
+  const 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.755 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.756
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.755	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Wed May  2 16:39:19 2007
@@ -76,7 +76,7 @@
     TargetData *TD;
     bool MustPreserveLCSSA;
   public:
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int InstCombiner::ID = 0;
+  const 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.97 llvm/lib/Transforms/Scalar/LICM.cpp:1.98
--- llvm/lib/Transforms/Scalar/LICM.cpp:1.97	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/LICM.cpp	Wed May  2 16:39:19 2007
@@ -63,7 +63,7 @@
                    cl::desc("Disable memory promotion in LICM pass"));
 
   struct VISIBILITY_HIDDEN LICM : public LoopPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int LICM::ID = 0;
+  const 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.11 llvm/lib/Transforms/Scalar/LoopRotation.cpp:1.12
--- llvm/lib/Transforms/Scalar/LoopRotation.cpp:1.11	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/LoopRotation.cpp	Wed May  2 16:39:19 2007
@@ -44,7 +44,7 @@
   class VISIBILITY_HIDDEN LoopRotate : public LoopPass {
 
   public:
-    static const int ID; // Pass ID, replacement for typeid
+    static const 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 int LoopRotate::ID = 0;
+  const 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.132 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.133
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.132	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp	Wed May  2 16:39:19 2007
@@ -143,7 +143,7 @@
     const TargetLowering *TLI;
 
   public:
-    static const int ID; // Pass ID, replacement for typeid
+    static const 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 int LoopStrengthReduce::ID = 0;
+  const 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.40 llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.41
--- llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.40	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/LoopUnroll.cpp	Wed May  2 16:39:19 2007
@@ -49,7 +49,7 @@
   class VISIBILITY_HIDDEN LoopUnroll : public LoopPass {
     LoopInfo *LI;  // The current loop information
   public:
-    static const int ID; // Pass ID, replacement for typeid
+    static const 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 int LoopUnroll::ID = 0;
+  const 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.66 llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.67
--- llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.66	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/LoopUnswitch.cpp	Wed May  2 16:39:19 2007
@@ -69,7 +69,7 @@
     SmallPtrSet<Value *,8> UnswitchedVals;
 
   public:
-    static const int ID; // Pass ID, replacement for typeid
+    static const 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 int LoopUnswitch::ID = 0;
+  const 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.23 llvm/lib/Transforms/Scalar/LowerGC.cpp:1.24
--- llvm/lib/Transforms/Scalar/LowerGC.cpp:1.23	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/LowerGC.cpp	Wed May  2 16:39:19 2007
@@ -47,7 +47,7 @@
     /// had zero roots.
     const Type *MainRootRecordType;
   public:
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int LowerGC::ID = 0;
+  const 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.22 llvm/lib/Transforms/Scalar/LowerPacked.cpp:1.23
--- llvm/lib/Transforms/Scalar/LowerPacked.cpp:1.22	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/LowerPacked.cpp	Wed May  2 16:39:19 2007
@@ -40,7 +40,7 @@
 class VISIBILITY_HIDDEN LowerPacked 
   : public FunctionPass, public InstVisitor<LowerPacked> {
 public:
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int LowerPacked::ID = 0;
+const 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.72 llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.73
--- llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp:1.72	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp	Wed May  2 16:39:19 2007
@@ -1989,7 +1989,7 @@
     std::vector<DominatorTree::Node *> WorkList;
 
   public:
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const char ID; // Pass identifcation, replacement for typeid
     PredicateSimplifier() : FunctionPass((intptr_t)&ID) {}
 
     bool runOnFunction(Function &F);
@@ -2377,7 +2377,7 @@
     }
   }
 
-  const int PredicateSimplifier::ID = 0;
+  const 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.79 llvm/lib/Transforms/Scalar/Reassociate.cpp:1.80
--- llvm/lib/Transforms/Scalar/Reassociate.cpp:1.79	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/Reassociate.cpp	Wed May  2 16:39:19 2007
@@ -69,7 +69,7 @@
     std::map<Value*, unsigned> ValueRankMap;
     bool MadeChange;
   public:
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int Reassociate::ID = 0;
+  const 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.13 llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.14
--- llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.13	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/Reg2Mem.cpp	Wed May  2 16:39:19 2007
@@ -33,7 +33,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN RegToMem : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const char ID; // Pass identifcation, replacement for typeid
     RegToMem() : FunctionPass((intptr_t)&ID) {}
 
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -78,7 +78,7 @@
     }
   };
   
-  const int RegToMem::ID = 0;
+  const 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.166 llvm/lib/Transforms/Scalar/SCCP.cpp:1.167
--- llvm/lib/Transforms/Scalar/SCCP.cpp:1.166	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/SCCP.cpp	Wed May  2 16:39:19 2007
@@ -1334,7 +1334,7 @@
   /// Sparse Conditional Constant Propagator.
   ///
   struct VISIBILITY_HIDDEN SCCP : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const char ID; // Pass identifcation, replacement for typeid
     SCCP() : FunctionPass((intptr_t)&ID) {}
 
     // runOnFunction - Run the Sparse Conditional Constant Propagation
@@ -1347,7 +1347,7 @@
     }
   };
 
-  const int SCCP::ID = 0;
+  const 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 int ID;
+    static const char ID;
     IPSCCP() : ModulePass((intptr_t)&ID) {}
     bool runOnModule(Module &M);
   };
 
-  const int IPSCCP::ID = 0;
+  const 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.91 llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.92
--- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.91	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp	Wed May  2 16:39:19 2007
@@ -47,7 +47,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN SROA : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int SROA::ID = 0;
+  const 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.22 llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.23
--- llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.22	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/SimplifyCFG.cpp	Wed May  2 16:39:19 2007
@@ -35,12 +35,12 @@
 
 namespace {
   struct VISIBILITY_HIDDEN CFGSimplifyPass : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const char ID; // Pass identifcation, replacement for typeid
     CFGSimplifyPass() : FunctionPass((intptr_t)&ID) {}
 
     virtual bool runOnFunction(Function &F);
   };
-  const int CFGSimplifyPass::ID = 0;
+  const 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.38 llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.39
--- llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.38	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/TailDuplication.cpp	Wed May  2 16:39:19 2007
@@ -43,14 +43,14 @@
   class VISIBILITY_HIDDEN TailDup : public FunctionPass {
     bool runOnFunction(Function &F);
   public:
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const char ID; // Pass identifcation, replacement for typeid
     TailDup() : FunctionPass((intptr_t)&ID) {}
 
   private:
     inline bool shouldEliminateUnconditionalBranch(TerminatorInst *TI);
     inline void eliminateUnconditionalBranch(BranchInst *BI);
   };
-  const int TailDup::ID = 0;
+  const 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.31 llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.32
--- llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.31	Tue May  1 16:15:47 2007
+++ llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp	Wed May  2 16:39:19 2007
@@ -67,7 +67,7 @@
 
 namespace {
   struct VISIBILITY_HIDDEN TailCallElim : public FunctionPass {
-    static const int ID; // Pass identifcation, replacement for typeid
+    static const 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 int TailCallElim::ID = 0;
+  const char TailCallElim::ID = 0;
   RegisterPass<TailCallElim> X("tailcallelim", "Tail Call Elimination");
 }
 






More information about the llvm-commits mailing list