Switch to the new style of asterisk placement.
authorCameron Zwarich <zwarich@apple.com>
Tue, 4 Jan 2011 18:19:19 +0000 (18:19 +0000)
committerCameron Zwarich <zwarich@apple.com>
Tue, 4 Jan 2011 18:19:19 +0000 (18:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122815 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/LoopInstSimplify.cpp

index 301e600fb9d0d0daebb3ed6a79c424a5adf832a7..b61574b21e0969db12749e0c5610eddcba60670a 100644 (file)
@@ -33,9 +33,9 @@ namespace {
       initializeLoopInstSimplifyPass(*PassRegistry::getPassRegistry());
     }
 
-    bool runOnFunction(Function&);
+    bool runOnFunction(Function &);
 
-    virtual void getAnalysisUsage(AnalysisUsageAU) const {
+    virtual void getAnalysisUsage(AnalysisUsage &AU) const {
       AU.setPreservesCFG();
       AU.addRequired<LoopInfo>();
       AU.addPreserved<LoopInfo>();
@@ -57,10 +57,10 @@ Pass* llvm::createLoopInstSimplifyPass() {
   return new LoopInstSimplify();
 }
 
-bool LoopInstSimplify::runOnFunction(FunctionF) {
-  DominatorTreeDT = getAnalysisIfAvailable<DominatorTree>();
-  LoopInfoLI = &getAnalysis<LoopInfo>();
-  const TargetDataTD = getAnalysisIfAvailable<TargetData>();
+bool LoopInstSimplify::runOnFunction(Function &F) {
+  DominatorTree *DT = getAnalysisIfAvailable<DominatorTree>();
+  LoopInfo *LI = &getAnalysis<LoopInfo>();
+  const TargetData *TD = getAnalysisIfAvailable<TargetData>();
 
   bool Changed = false;
   bool LocalChanged;
@@ -70,10 +70,10 @@ bool LoopInstSimplify::runOnFunction(Function& F) {
     for (df_iterator<BasicBlock*> DI = df_begin(&F.getEntryBlock()),
          DE = df_end(&F.getEntryBlock()); DI != DE; ++DI)
       for (BasicBlock::iterator BI = DI->begin(), BE = DI->end(); BI != BE;) {
-        InstructionI = BI++;
+        Instruction *I = BI++;
         // Don't bother simplifying unused instructions.
         if (!I->use_empty()) {
-          ValueV = SimplifyInstruction(I, TD, DT);
+          Value *V = SimplifyInstruction(I, TD, DT);
           if (V && LI->replacementPreservesLCSSAForm(I, V)) {
             I->replaceAllUsesWith(V);
             LocalChanged = true;