mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-07 11:33:44 +00:00
add a FIXME so we remember to eventually remove this code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
082f1161b1
commit
4446997e0a
@ -249,8 +249,8 @@ bool LoopRotate::rotateLoop(Loop *Lp, LPPassManager &LPM) {
|
|||||||
// create new PHINode for this instruction.
|
// create new PHINode for this instruction.
|
||||||
Instruction *NewHeaderReplacement = NULL;
|
Instruction *NewHeaderReplacement = NULL;
|
||||||
if (usedOutsideOriginalHeader(In)) {
|
if (usedOutsideOriginalHeader(In)) {
|
||||||
const StructType *STy = dyn_cast<StructType>(In->getType());
|
// FIXME: remove this when we have first-class aggregates.
|
||||||
if (STy) {
|
if (isa<StructType>(In->getType())) {
|
||||||
// Can't create PHI nodes for this type. If there are any getResults
|
// Can't create PHI nodes for this type. If there are any getResults
|
||||||
// not defined in this block, move them back to this block. PHI
|
// not defined in this block, move them back to this block. PHI
|
||||||
// nodes will be created for all getResults later.
|
// nodes will be created for all getResults later.
|
||||||
@ -261,14 +261,15 @@ bool LoopRotate::rotateLoop(Loop *Lp, LPPassManager &LPM) {
|
|||||||
++InsertPoint;
|
++InsertPoint;
|
||||||
} else {
|
} else {
|
||||||
InsertPoint = I; // call
|
InsertPoint = I; // call
|
||||||
InsertPoint++;
|
++InsertPoint;
|
||||||
}
|
}
|
||||||
for (Value::use_iterator UI = In->use_begin(), UE = In->use_end();
|
for (Value::use_iterator UI = In->use_begin(), UE = In->use_end();
|
||||||
UI != UE; ++UI) {
|
UI != UE; ++UI) {
|
||||||
GetResultInst *InGR = cast<GetResultInst>(UI);
|
GetResultInst *InGR = cast<GetResultInst>(UI);
|
||||||
if (InGR->getParent() != OrigHeader) {
|
if (InGR->getParent() != OrigHeader) {
|
||||||
// move InGR to immediately follow call. It will be picked
|
// Move InGR to immediately after the call or in the normal dest of
|
||||||
// up, cloned and PHI'd on the next iteration.
|
// the invoke. It will be picked up, cloned and PHI'd on the next
|
||||||
|
// iteration.
|
||||||
InGR->moveBefore(InsertPoint);
|
InGR->moveBefore(InsertPoint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user