diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-01-04 18:19:19 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-01-04 18:19:19 +0000 |
commit | b2a41e93887199c28e93354dcc7f51e589cd8784 (patch) | |
tree | 0a7e36ce5cd14a9cf12632af63ffef78fa0365d3 /llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp | |
parent | c86e67e11026e23d634f65d31cc8ca762d4fa9c3 (diff) | |
download | bcm5719-llvm-b2a41e93887199c28e93354dcc7f51e589cd8784.tar.gz bcm5719-llvm-b2a41e93887199c28e93354dcc7f51e589cd8784.zip |
Switch to the new style of asterisk placement.
llvm-svn: 122815
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp b/llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp index 301e600fb9d..b61574b21e0 100644 --- a/llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp +++ b/llvm/lib/Transforms/Scalar/LoopInstSimplify.cpp @@ -33,9 +33,9 @@ namespace { initializeLoopInstSimplifyPass(*PassRegistry::getPassRegistry()); } - bool runOnFunction(Function&); + bool runOnFunction(Function &); - virtual void getAnalysisUsage(AnalysisUsage& AU) 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(Function& F) { - DominatorTree* DT = getAnalysisIfAvailable<DominatorTree>(); - LoopInfo* LI = &getAnalysis<LoopInfo>(); - const TargetData* TD = 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;) { - Instruction* I = BI++; + Instruction *I = BI++; // Don't bother simplifying unused instructions. if (!I->use_empty()) { - Value* V = SimplifyInstruction(I, TD, DT); + Value *V = SimplifyInstruction(I, TD, DT); if (V && LI->replacementPreservesLCSSAForm(I, V)) { I->replaceAllUsesWith(V); LocalChanged = true; |