[llvm-commits] CVS: llvm/lib/Transforms/Scalar/ADCE.cpp BasicBlockPlacement.cpp CondPropagate.cpp ConstantProp.cpp CorrelatedExprs.cpp DCE.cpp DeadStoreElimination.cpp GCSE.cpp IndVarSimplify.cpp InstructionCombining.cpp LICM.cpp LoopStrengthReduce.cpp LoopUnroll.cpp LoopUnswitch.cpp LowerGC.cpp LowerPacked.cpp Reassociate.cpp Reg2Mem.cpp SCCP.cpp ScalarReplAggregates.cpp SimplifyCFG.cpp TailDuplication.cpp TailRecursionElimination.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 27 15:43:26 PDT 2006



Changes in directory llvm/lib/Transforms/Scalar:

ADCE.cpp updated: 1.97 -> 1.98
BasicBlockPlacement.cpp updated: 1.5 -> 1.6
CondPropagate.cpp updated: 1.5 -> 1.6
ConstantProp.cpp updated: 1.51 -> 1.52
CorrelatedExprs.cpp updated: 1.33 -> 1.34
DCE.cpp updated: 1.58 -> 1.59
DeadStoreElimination.cpp updated: 1.13 -> 1.14
GCSE.cpp updated: 1.47 -> 1.48
IndVarSimplify.cpp updated: 1.93 -> 1.94
InstructionCombining.cpp updated: 1.500 -> 1.501
LICM.cpp updated: 1.77 -> 1.78
LoopStrengthReduce.cpp updated: 1.88 -> 1.89
LoopUnroll.cpp updated: 1.25 -> 1.26
LoopUnswitch.cpp updated: 1.45 -> 1.46
LowerGC.cpp updated: 1.12 -> 1.13
LowerPacked.cpp updated: 1.8 -> 1.9
Reassociate.cpp updated: 1.61 -> 1.62
Reg2Mem.cpp updated: 1.6 -> 1.7
SCCP.cpp updated: 1.130 -> 1.131
ScalarReplAggregates.cpp updated: 1.41 -> 1.42
SimplifyCFG.cpp updated: 1.14 -> 1.15
TailDuplication.cpp updated: 1.29 -> 1.30
TailRecursionElimination.cpp updated: 1.22 -> 1.23
---
Log message:

eliminate RegisterOpt.  It does the same thing as RegisterPass.


---
Diffs of the changes:  (+27 -27)

 ADCE.cpp                     |    2 +-
 BasicBlockPlacement.cpp      |    4 ++--
 CondPropagate.cpp            |    2 +-
 ConstantProp.cpp             |    3 ++-
 CorrelatedExprs.cpp          |    2 +-
 DCE.cpp                      |    4 ++--
 DeadStoreElimination.cpp     |    2 +-
 GCSE.cpp                     |    2 +-
 IndVarSimplify.cpp           |    2 +-
 InstructionCombining.cpp     |    2 +-
 LICM.cpp                     |    2 +-
 LoopStrengthReduce.cpp       |    3 +--
 LoopUnroll.cpp               |    2 +-
 LoopUnswitch.cpp             |    2 +-
 LowerGC.cpp                  |    2 +-
 LowerPacked.cpp              |    2 +-
 Reassociate.cpp              |    2 +-
 Reg2Mem.cpp                  |    2 +-
 SCCP.cpp                     |    4 ++--
 ScalarReplAggregates.cpp     |    2 +-
 SimplifyCFG.cpp              |    2 +-
 TailDuplication.cpp          |    2 +-
 TailRecursionElimination.cpp |    2 +-
 23 files changed, 27 insertions(+), 27 deletions(-)


Index: llvm/lib/Transforms/Scalar/ADCE.cpp
diff -u llvm/lib/Transforms/Scalar/ADCE.cpp:1.97 llvm/lib/Transforms/Scalar/ADCE.cpp:1.98
--- llvm/lib/Transforms/Scalar/ADCE.cpp:1.97	Fri Jun  2 14:11:46 2006
+++ llvm/lib/Transforms/Scalar/ADCE.cpp	Sun Aug 27 17:42:52 2006
@@ -102,7 +102,7 @@
   }
 };
 
-  RegisterOpt<ADCE> X("adce", "Aggressive Dead Code Elimination");
+  RegisterPass<ADCE> X("adce", "Aggressive Dead Code Elimination");
 } // End of anonymous namespace
 
 FunctionPass *llvm::createAggressiveDCEPass() { return new ADCE(); }


Index: llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp
diff -u llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.5 llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.6
--- llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp:1.5	Thu Apr 21 18:45:12 2005
+++ llvm/lib/Transforms/Scalar/BasicBlockPlacement.cpp	Sun Aug 27 17:42:52 2006
@@ -68,8 +68,8 @@
     void PlaceBlocks(BasicBlock *BB);
   };
 
-  RegisterOpt<BlockPlacement> X("block-placement",
-                                "Profile Guided Basic Block Placement");
+  RegisterPass<BlockPlacement> X("block-placement",
+                                 "Profile Guided Basic Block Placement");
 }
 
 FunctionPass *llvm::createBlockPlacementPass() { return new BlockPlacement(); }


Index: llvm/lib/Transforms/Scalar/CondPropagate.cpp
diff -u llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.5 llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.6
--- llvm/lib/Transforms/Scalar/CondPropagate.cpp:1.5	Mon Aug 14 16:38:05 2006
+++ llvm/lib/Transforms/Scalar/CondPropagate.cpp	Sun Aug 27 17:42:52 2006
@@ -46,7 +46,7 @@
     void SimplifyPredecessors(SwitchInst *SI);
     void RevectorBlockTo(BasicBlock *FromBB, BasicBlock *ToBB);
   };
-  RegisterOpt<CondProp> X("condprop", "Conditional Propagation");
+  RegisterPass<CondProp> X("condprop", "Conditional Propagation");
 }
 
 FunctionPass *llvm::createCondPropagationPass() {


Index: llvm/lib/Transforms/Scalar/ConstantProp.cpp
diff -u llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.51 llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.52
--- llvm/lib/Transforms/Scalar/ConstantProp.cpp:1.51	Thu Apr 21 18:45:12 2005
+++ llvm/lib/Transforms/Scalar/ConstantProp.cpp	Sun Aug 27 17:42:52 2006
@@ -39,7 +39,8 @@
     }
   };
 
-  RegisterOpt<ConstantPropagation> X("constprop","Simple constant propagation");
+  RegisterPass<ConstantPropagation> X("constprop",
+                                      "Simple constant propagation");
 }
 
 FunctionPass *llvm::createConstantPropagationPass() {


Index: llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp
diff -u llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.33 llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.34
--- llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp:1.33	Sun Mar 19 13:37:24 2006
+++ llvm/lib/Transforms/Scalar/CorrelatedExprs.cpp	Sun Aug 27 17:42:52 2006
@@ -286,7 +286,7 @@
     bool SimplifyBasicBlock(BasicBlock &BB, const RegionInfo &RI);
     bool SimplifyInstruction(Instruction *Inst, const RegionInfo &RI);
   };
-  RegisterOpt<CEE> X("cee", "Correlated Expression Elimination");
+  RegisterPass<CEE> X("cee", "Correlated Expression Elimination");
 }
 
 FunctionPass *llvm::createCorrelatedExpressionEliminationPass() {


Index: llvm/lib/Transforms/Scalar/DCE.cpp
diff -u llvm/lib/Transforms/Scalar/DCE.cpp:1.58 llvm/lib/Transforms/Scalar/DCE.cpp:1.59
--- llvm/lib/Transforms/Scalar/DCE.cpp:1.58	Sun May  8 13:45:26 2005
+++ llvm/lib/Transforms/Scalar/DCE.cpp	Sun Aug 27 17:42:52 2006
@@ -50,7 +50,7 @@
     }
   };
 
-  RegisterOpt<DeadInstElimination> X("die", "Dead Instruction Elimination");
+  RegisterPass<DeadInstElimination> X("die", "Dead Instruction Elimination");
 }
 
 FunctionPass *llvm::createDeadInstEliminationPass() {
@@ -71,7 +71,7 @@
     }
  };
 
-  RegisterOpt<DCE> Y("dce", "Dead Code Elimination");
+  RegisterPass<DCE> Y("dce", "Dead Code Elimination");
 }
 
 bool DCE::runOnFunction(Function &F) {


Index: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
diff -u llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.13 llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.14
--- llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:1.13	Wed Nov 30 13:38:22 2005
+++ llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp	Sun Aug 27 17:42:52 2006
@@ -54,7 +54,7 @@
       AU.addPreserved<AliasAnalysis>();
     }
   };
-  RegisterOpt<DSE> X("dse", "Dead Store Elimination");
+  RegisterPass<DSE> X("dse", "Dead Store Elimination");
 }
 
 FunctionPass *llvm::createDeadStoreEliminationPass() { return new DSE(); }


Index: llvm/lib/Transforms/Scalar/GCSE.cpp
diff -u llvm/lib/Transforms/Scalar/GCSE.cpp:1.47 llvm/lib/Transforms/Scalar/GCSE.cpp:1.48
--- llvm/lib/Transforms/Scalar/GCSE.cpp:1.47	Tue Jan 10 23:10:20 2006
+++ llvm/lib/Transforms/Scalar/GCSE.cpp	Sun Aug 27 17:42:52 2006
@@ -51,7 +51,7 @@
     }
   };
 
-  RegisterOpt<GCSE> X("gcse", "Global Common Subexpression Elimination");
+  RegisterPass<GCSE> X("gcse", "Global Common Subexpression Elimination");
 }
 
 // createGCSEPass - The public interface to this file...


Index: llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff -u llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.93 llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.94
--- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp:1.93	Fri Aug 25 17:12:36 2006
+++ llvm/lib/Transforms/Scalar/IndVarSimplify.cpp	Sun Aug 27 17:42:52 2006
@@ -92,7 +92,7 @@
 
     void DeleteTriviallyDeadInstructions(std::set<Instruction*> &Insts);
   };
-  RegisterOpt<IndVarSimplify> X("indvars", "Canonicalize Induction Variables");
+  RegisterPass<IndVarSimplify> X("indvars", "Canonicalize Induction Variables");
 }
 
 FunctionPass *llvm::createIndVarSimplifyPass() {


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.500 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.501
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.500	Sun Aug 27 07:54:01 2006
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Sun Aug 27 17:42:52 2006
@@ -264,7 +264,7 @@
     Value *EvaluateInDifferentType(Value *V, const Type *Ty);
   };
 
-  RegisterOpt<InstCombiner> X("instcombine", "Combine redundant instructions");
+  RegisterPass<InstCombiner> X("instcombine", "Combine redundant instructions");
 }
 
 // getComplexity:  Assign a complexity or rank value to LLVM Values...


Index: llvm/lib/Transforms/Scalar/LICM.cpp
diff -u llvm/lib/Transforms/Scalar/LICM.cpp:1.77 llvm/lib/Transforms/Scalar/LICM.cpp:1.78
--- llvm/lib/Transforms/Scalar/LICM.cpp:1.77	Mon Jun 26 14:10:05 2006
+++ llvm/lib/Transforms/Scalar/LICM.cpp	Sun Aug 27 17:42:52 2006
@@ -197,7 +197,7 @@
                                     std::map<Value*, AllocaInst*> &Val2AlMap);
   };
 
-  RegisterOpt<LICM> X("licm", "Loop Invariant Code Motion");
+  RegisterPass<LICM> X("licm", "Loop Invariant Code Motion");
 }
 
 FunctionPass *llvm::createLICMPass() { return new LICM(); }


Index: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
diff -u llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.88 llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.89
--- llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1.88	Sun Aug 27 07:54:01 2006
+++ llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp	Sun Aug 27 17:42:52 2006
@@ -194,8 +194,7 @@
                                       Loop *L, bool isOnlyStride);
     void DeleteTriviallyDeadInstructions(std::set<Instruction*> &Insts);
   };
-  RegisterOpt<LoopStrengthReduce> X("loop-reduce",
-                                    "Loop Strength Reduction");
+  RegisterPass<LoopStrengthReduce> X("loop-reduce", "Loop Strength Reduction");
 }
 
 FunctionPass *llvm::createLoopStrengthReducePass(const TargetLowering *TLI) {


Index: llvm/lib/Transforms/Scalar/LoopUnroll.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.25 llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.26
--- llvm/lib/Transforms/Scalar/LoopUnroll.cpp:1.25	Fri Aug 25 17:13:55 2006
+++ llvm/lib/Transforms/Scalar/LoopUnroll.cpp	Sun Aug 27 17:42:52 2006
@@ -60,7 +60,7 @@
       AU.addPreserved<LoopInfo>();
     }
   };
-  RegisterOpt<LoopUnroll> X("loop-unroll", "Unroll loops");
+  RegisterPass<LoopUnroll> X("loop-unroll", "Unroll loops");
 }
 
 FunctionPass *llvm::createLoopUnrollPass() { return new LoopUnroll(); }


Index: llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.45 llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.46
--- llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.45	Tue Jul 18 22:51:48 2006
+++ llvm/lib/Transforms/Scalar/LoopUnswitch.cpp	Sun Aug 27 17:42:52 2006
@@ -103,7 +103,7 @@
                            std::vector<Instruction*> &Worklist);
     void RemoveLoopFromHierarchy(Loop *L);
   };
-  RegisterOpt<LoopUnswitch> X("loop-unswitch", "Unswitch loops");
+  RegisterPass<LoopUnswitch> X("loop-unswitch", "Unswitch loops");
 }
 
 FunctionPass *llvm::createLoopUnswitchPass() { return new LoopUnswitch(); }


Index: llvm/lib/Transforms/Scalar/LowerGC.cpp
diff -u llvm/lib/Transforms/Scalar/LowerGC.cpp:1.12 llvm/lib/Transforms/Scalar/LowerGC.cpp:1.13
--- llvm/lib/Transforms/Scalar/LowerGC.cpp:1.12	Sun Aug 27 07:54:01 2006
+++ llvm/lib/Transforms/Scalar/LowerGC.cpp	Sun Aug 27 17:42:52 2006
@@ -56,7 +56,7 @@
     const StructType *getRootRecordType(unsigned NumRoots);
   };
 
-  RegisterOpt<LowerGC>
+  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.8 llvm/lib/Transforms/Scalar/LowerPacked.cpp:1.9
--- llvm/lib/Transforms/Scalar/LowerPacked.cpp:1.8	Tue Jan 17 14:06:55 2006
+++ llvm/lib/Transforms/Scalar/LowerPacked.cpp	Sun Aug 27 17:42:52 2006
@@ -102,7 +102,7 @@
    std::vector<Instruction*> instrsToRemove;
 };
 
-RegisterOpt<LowerPacked>
+RegisterPass<LowerPacked>
 X("lower-packed",
   "lowers packed operations to operations on smaller packed datatypes");
 


Index: llvm/lib/Transforms/Scalar/Reassociate.cpp
diff -u llvm/lib/Transforms/Scalar/Reassociate.cpp:1.61 llvm/lib/Transforms/Scalar/Reassociate.cpp:1.62
--- llvm/lib/Transforms/Scalar/Reassociate.cpp:1.61	Thu Apr 27 23:14:49 2006
+++ llvm/lib/Transforms/Scalar/Reassociate.cpp	Sun Aug 27 17:42:52 2006
@@ -90,7 +90,7 @@
     void RemoveDeadBinaryOp(Value *V);
   };
 
-  RegisterOpt<Reassociate> X("reassociate", "Reassociate expressions");
+  RegisterPass<Reassociate> X("reassociate", "Reassociate expressions");
 }
 
 // Public interface to the Reassociate pass


Index: llvm/lib/Transforms/Scalar/Reg2Mem.cpp
diff -u llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.6 llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.7
--- llvm/lib/Transforms/Scalar/Reg2Mem.cpp:1.6	Fri Nov 25 10:04:54 2005
+++ llvm/lib/Transforms/Scalar/Reg2Mem.cpp	Sun Aug 27 17:42:52 2006
@@ -76,7 +76,7 @@
     }
   };
   
-  RegisterOpt<RegToMem> X("reg2mem", "Demote all values to stack slots");
+  RegisterPass<RegToMem> X("reg2mem", "Demote all values to stack slots");
 }
 
 // createDemoteRegisterToMemory - Provide an entry point to create this pass.


Index: llvm/lib/Transforms/Scalar/SCCP.cpp
diff -u llvm/lib/Transforms/Scalar/SCCP.cpp:1.130 llvm/lib/Transforms/Scalar/SCCP.cpp:1.131
--- llvm/lib/Transforms/Scalar/SCCP.cpp:1.130	Fri Apr  7 20:19:12 2006
+++ llvm/lib/Transforms/Scalar/SCCP.cpp	Sun Aug 27 17:42:52 2006
@@ -1075,7 +1075,7 @@
     }
   };
 
-  RegisterOpt<SCCP> X("sccp", "Sparse Conditional Constant Propagation");
+  RegisterPass<SCCP> X("sccp", "Sparse Conditional Constant Propagation");
 } // end anonymous namespace
 
 
@@ -1183,7 +1183,7 @@
     bool runOnModule(Module &M);
   };
 
-  RegisterOpt<IPSCCP>
+  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.41 llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.42
--- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp:1.41	Sun Aug 27 07:54:01 2006
+++ llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp	Sun Aug 27 17:42:52 2006
@@ -70,7 +70,7 @@
     void ConvertUsesToScalar(Value *Ptr, AllocaInst *NewAI, unsigned Offset);
   };
 
-  RegisterOpt<SROA> X("scalarrepl", "Scalar Replacement of Aggregates");
+  RegisterPass<SROA> X("scalarrepl", "Scalar Replacement of Aggregates");
 }
 
 // Public interface to the ScalarReplAggregates pass


Index: llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.14 llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.15
--- llvm/lib/Transforms/Scalar/SimplifyCFG.cpp:1.14	Thu Apr 21 18:45:12 2005
+++ llvm/lib/Transforms/Scalar/SimplifyCFG.cpp	Sun Aug 27 17:42:52 2006
@@ -35,7 +35,7 @@
   struct CFGSimplifyPass : public FunctionPass {
     virtual bool runOnFunction(Function &F);
   };
-  RegisterOpt<CFGSimplifyPass> X("simplifycfg", "Simplify the CFG");
+  RegisterPass<CFGSimplifyPass> X("simplifycfg", "Simplify the CFG");
 }
 
 // Public interface to the CFGSimplification pass


Index: llvm/lib/Transforms/Scalar/TailDuplication.cpp
diff -u llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.29 llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.30
--- llvm/lib/Transforms/Scalar/TailDuplication.cpp:1.29	Sun Jan 22 17:32:06 2006
+++ llvm/lib/Transforms/Scalar/TailDuplication.cpp	Sun Aug 27 17:42:52 2006
@@ -47,7 +47,7 @@
     inline bool shouldEliminateUnconditionalBranch(TerminatorInst *TI);
     inline void eliminateUnconditionalBranch(BranchInst *BI);
   };
-  RegisterOpt<TailDup> X("tailduplicate", "Tail Duplication");
+  RegisterPass<TailDup> X("tailduplicate", "Tail Duplication");
 }
 
 // Public interface to the Tail Duplication pass


Index: llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
diff -u llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.22 llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.23
--- llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp:1.22	Sat Nov  5 02:21:11 2005
+++ llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp	Sun Aug 27 17:42:52 2006
@@ -75,7 +75,7 @@
     bool CanMoveAboveCall(Instruction *I, CallInst *CI);
     Value *CanTransformAccumulatorRecursion(Instruction *I, CallInst *CI);
   };
-  RegisterOpt<TailCallElim> X("tailcallelim", "Tail Call Elimination");
+  RegisterPass<TailCallElim> X("tailcallelim", "Tail Call Elimination");
 }
 
 // Public interface to the TailCallElimination pass






More information about the llvm-commits mailing list