[polly] r175177 - Formatting fixes
Tobias Grosser
grosser at fim.uni-passau.de
Thu Feb 14 08:42:45 PST 2013
Author: grosser
Date: Thu Feb 14 10:42:45 2013
New Revision: 175177
URL: http://llvm.org/viewvc/llvm-project?rev=175177&view=rev
Log:
Formatting fixes
Modified:
polly/trunk/lib/Support/ScopHelper.cpp
Modified: polly/trunk/lib/Support/ScopHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/ScopHelper.cpp?rev=175177&r1=175176&r2=175177&view=diff
==============================================================================
--- polly/trunk/lib/Support/ScopHelper.cpp (original)
+++ polly/trunk/lib/Support/ScopHelper.cpp Thu Feb 14 10:42:45 2013
@@ -41,13 +41,14 @@ Loop *polly::castToLoop(const Region &R,
BasicBlock *exit = L->getExitBlock();
// Is the loop with multiple exits?
- if (!exit) return 0;
+ if (!exit)
+ return 0;
if (exit != R.getExit()) {
// SubRegion/ParentRegion with the same entry.
- assert((R.getNode(R.getEntry())->isSubRegion()
- || R.getParent()->getEntry() == entry)
- && "Expect the loop is the smaller or bigger region");
+ assert((R.getNode(R.getEntry())->isSubRegion() ||
+ R.getParent()->getEntry() == entry) &&
+ "Expect the loop is the smaller or bigger region");
return 0;
}
@@ -67,14 +68,15 @@ Value *polly::getPointerOperand(Instruct
//===----------------------------------------------------------------------===//
// Helper functions
-bool polly::isIndVar(const SCEV *Var, Region &RefRegion,
- LoopInfo &LI, ScalarEvolution &SE) {
+bool polly::isIndVar(const SCEV *Var, Region &RefRegion, LoopInfo &LI,
+ ScalarEvolution &SE) {
const SCEVAddRecExpr *AddRec = dyn_cast<SCEVAddRecExpr>(Var);
// AddRecExprs are no induction variables.
- if (!AddRec) return false;
+ if (!AddRec)
+ return false;
- Loop *L = const_cast<Loop*>(AddRec->getLoop());
+ Loop *L = const_cast<Loop *>(AddRec->getLoop());
// Is the addrec an induction variable of a loop contained in the current
// region.
@@ -82,7 +84,7 @@ bool polly::isIndVar(const SCEV *Var, Re
return false;
DEBUG(dbgs() << "Find AddRec: " << *AddRec
- << " at region: " << RefRegion.getNameStr() << " as indvar\n");
+ << " at region: " << RefRegion.getNameStr() << " as indvar\n");
return true;
}
@@ -104,7 +106,7 @@ bool polly::hasInvokeEdge(const PHINode
BasicBlock *polly::createSingleExitEdge(Region *R, Pass *P) {
BasicBlock *BB = R->getExit();
- SmallVector<BasicBlock*, 4> Preds;
+ SmallVector<BasicBlock *, 4> Preds;
for (pred_iterator PI = pred_begin(BB), PE = pred_end(BB); PI != PE; ++PI)
if (R->contains(*PI))
Preds.push_back(*PI);
@@ -116,7 +118,8 @@ void polly::splitEntryBlockForAlloca(Bas
// Find first non-alloca instruction. Every basic block has a non-alloc
// instruction, as every well formed basic block has a terminator.
BasicBlock::iterator I = EntryBlock->begin();
- while (isa<AllocaInst>(I)) ++I;
+ while (isa<AllocaInst>(I))
+ ++I;
// SplitBlock updates DT, DF and LI.
BasicBlock *NewEntry = SplitBlock(EntryBlock, I, P);
More information about the llvm-commits
mailing list