mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Fix some typos and wrong indenting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166128 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -365,7 +365,7 @@ void SingleBlockLoopVectorizer::scalarizeInstruction(Instruction *Instr) {
|
|||||||
Cloned->setOperand(op, Op);
|
Cloned->setOperand(op, Op);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Place the clonsed scalar in the new loop.
|
// Place the cloned scalar in the new loop.
|
||||||
Builder->Insert(Cloned);
|
Builder->Insert(Cloned);
|
||||||
|
|
||||||
// If the original scalar returns a value we need to place it in a vector
|
// If the original scalar returns a value we need to place it in a vector
|
||||||
@ -432,7 +432,7 @@ void SingleBlockLoopVectorizer::copyEmptyLoop() {
|
|||||||
PH->getTerminator()->setSuccessor(0, BB);
|
PH->getTerminator()->setSuccessor(0, BB);
|
||||||
Builder->SetInsertPoint(BB->getFirstInsertionPt());
|
Builder->SetInsertPoint(BB->getFirstInsertionPt());
|
||||||
|
|
||||||
// Save the indiction variables.
|
// Save the induction variables.
|
||||||
Induction = Phi;
|
Induction = Phi;
|
||||||
OldInduction = OldInd;
|
OldInduction = OldInd;
|
||||||
}
|
}
|
||||||
@ -442,7 +442,7 @@ void SingleBlockLoopVectorizer::vectorizeLoop() {
|
|||||||
|
|
||||||
// For each instruction in the old loop.
|
// For each instruction in the old loop.
|
||||||
for (BasicBlock::iterator it = BB.begin(), e = BB.end(); it != e; ++it) {
|
for (BasicBlock::iterator it = BB.begin(), e = BB.end(); it != e; ++it) {
|
||||||
Instruction *Inst = it;
|
Instruction *Inst = it;
|
||||||
|
|
||||||
switch (Inst->getOpcode()) {
|
switch (Inst->getOpcode()) {
|
||||||
case Instruction::PHI:
|
case Instruction::PHI:
|
||||||
@ -677,7 +677,7 @@ bool LoopVectorizationLegality::canVectorizeBlock(BasicBlock &BB) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// IF this is a load, record its pointer. If it is not a load, abort.
|
// If this is a load, record its pointer. If it is not a load, abort.
|
||||||
// Notice that we don't handle function calls that read or write.
|
// Notice that we don't handle function calls that read or write.
|
||||||
if (I->mayReadFromMemory()) {
|
if (I->mayReadFromMemory()) {
|
||||||
LoadInst *Ld = dyn_cast<LoadInst>(I);
|
LoadInst *Ld = dyn_cast<LoadInst>(I);
|
||||||
|
Reference in New Issue
Block a user