mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Reformat comments to fix 80 columns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20467 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b21bf9a8d5
commit
e43dd1b8e7
@ -203,17 +203,18 @@ void LoopStrengthReduce::strengthReduceGEP(GetElementPtrInst *GEPI, Loop *L,
|
|||||||
Preheader->getTerminator());
|
Preheader->getTerminator());
|
||||||
}
|
}
|
||||||
|
|
||||||
// The next step of the strength reduction is to create a PHI that will choose
|
// The next step of the strength reduction is to create a PHI that will
|
||||||
// between the initial GEP we created and inserted into the preheader, and
|
// choose between the initial GEP we created and inserted into the
|
||||||
// the incremented GEP that we will create below and insert into the loop body
|
// preheader, and the incremented GEP that we will create below and insert
|
||||||
|
// into the loop body.
|
||||||
NewPHI = new PHINode(PreGEP->getType(),
|
NewPHI = new PHINode(PreGEP->getType(),
|
||||||
GEPI->getName()+".str", InsertBefore);
|
GEPI->getName()+".str", InsertBefore);
|
||||||
NewPHI->addIncoming(PreGEP, Preheader);
|
NewPHI->addIncoming(PreGEP, Preheader);
|
||||||
|
|
||||||
// Now, create the GEP instruction to increment by one the value selected by
|
// Now, create the GEP instruction to increment by one the value selected
|
||||||
// the PHI instruction we just created above, and add it as the second
|
// by the PHI instruction we just created above, and add it as the second
|
||||||
// incoming Value/BasicBlock pair to the PHINode. It is inserted before the
|
// incoming Value/BasicBlock pair to the PHINode. It is inserted before
|
||||||
// increment of the canonical induction variable.
|
// the increment of the canonical induction variable.
|
||||||
Instruction *IncrInst =
|
Instruction *IncrInst =
|
||||||
const_cast<Instruction*>(L->getCanonicalInductionVariableIncrement());
|
const_cast<Instruction*>(L->getCanonicalInductionVariableIncrement());
|
||||||
GetElementPtrInst *StrGEP = new GetElementPtrInst(NewPHI, inc_op_vector,
|
GetElementPtrInst *StrGEP = new GetElementPtrInst(NewPHI, inc_op_vector,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user