From: Anton Korobeynikov Date: Fri, 9 Nov 2007 12:34:20 +0000 (+0000) Subject: Fix indent X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=20a990e16e0d6b4d676bfc02bfe840a3fa6c33bd;p=oota-llvm.git Fix indent git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43941 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/CloneTrace.cpp b/lib/Transforms/Utils/CloneTrace.cpp index 05649a0639d..880b9331a67 100644 --- a/lib/Transforms/Utils/CloneTrace.cpp +++ b/lib/Transforms/Utils/CloneTrace.cpp @@ -32,7 +32,7 @@ llvm::CloneTrace(const std::vector &origTrace) { //them using CloneBasicBlock. Also fix the phi nodes during //this loop. To fix the phi nodes, we delete incoming branches //that are not in the trace. - for(std::vector::const_iterator T = origTrace.begin(), + for (std::vector::const_iterator T = origTrace.begin(), End = origTrace.end(); T != End; ++T) { //Clone Basic Block @@ -48,7 +48,7 @@ llvm::CloneTrace(const std::vector &origTrace) { //Loop over the phi instructions and delete operands //that are from blocks not in the trace //only do this if we are NOT the first block - if(T != origTrace.begin()) { + if (T != origTrace.begin()) { for (BasicBlock::iterator I = clonedBlock->begin(); isa(I); ++I) { PHINode *PN = cast(I); @@ -66,20 +66,19 @@ llvm::CloneTrace(const std::vector &origTrace) { } //Second loop to do the remapping - for(std::vector::const_iterator BB = clonedTrace.begin(), + for (std::vector::const_iterator BB = clonedTrace.begin(), BE = clonedTrace.end(); BB != BE; ++BB) { - for(BasicBlock::iterator I = (*BB)->begin(); I != (*BB)->end(); ++I) { - + for (BasicBlock::iterator I = (*BB)->begin(); I != (*BB)->end(); ++I) { //Loop over all the operands of the instruction - for(unsigned op=0, E = I->getNumOperands(); op != E; ++op) { - const Value *Op = I->getOperand(op); + for (unsigned op=0, E = I->getNumOperands(); op != E; ++op) { + const Value *Op = I->getOperand(op); - //Get it out of the value map - Value *V = ValueMap[Op]; + //Get it out of the value map + Value *V = ValueMap[Op]; - //If not in the value map, then its outside our trace so ignore - if(V != 0) - I->setOperand(op,V); + //If not in the value map, then its outside our trace so ignore + if (V != 0) + I->setOperand(op,V); } } }