aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/LoopInstSimplify.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-01-04 18:19:19 +0000
committerCameron Zwarich <zwarich@apple.com>2011-01-04 18:19:19 +0000
commit64573aecb6ee43202327e938cc42dd2c1ad0f045 (patch)
tree1bba2ea74c66e9cad45a3f34aa9468e183097c86 /lib/Transforms/Scalar/LoopInstSimplify.cpp
parent43b40a4620c155c73ac71b48472ea2411d7c35da (diff)
downloadexternal_llvm-64573aecb6ee43202327e938cc42dd2c1ad0f045.zip
external_llvm-64573aecb6ee43202327e938cc42dd2c1ad0f045.tar.gz
external_llvm-64573aecb6ee43202327e938cc42dd2c1ad0f045.tar.bz2
Switch to the new style of asterisk placement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopInstSimplify.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopInstSimplify.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Transforms/Scalar/LoopInstSimplify.cpp b/lib/Transforms/Scalar/LoopInstSimplify.cpp
index 301e600..b61574b 100644
--- a/lib/Transforms/Scalar/LoopInstSimplify.cpp
+++ b/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;