mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
- Use getExitingBlock instead of getExitingBlocks.
- Remove trailing spaces. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146854 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0581ed792b
commit
53ce428646
@ -81,8 +81,8 @@ static void ConnectProlog(Loop *L, Value *TripCount, unsigned Count,
|
||||
} else {
|
||||
NewPN->addIncoming(Constant::getNullValue(PN->getType()), OrigPH);
|
||||
}
|
||||
Value *OrigVal = PN->getIncomingValueForBlock(Latch);
|
||||
Value *V = OrigVal;
|
||||
|
||||
Value *V = PN->getIncomingValueForBlock(Latch);
|
||||
if (Instruction *I = dyn_cast<Instruction>(V)) {
|
||||
if (L->contains(I)) {
|
||||
V = LVMap[I];
|
||||
@ -227,9 +227,7 @@ static void CloneLoopBlocks(Loop *L,
|
||||
bool llvm::UnrollRuntimeLoopProlog(Loop *L, unsigned Count, LoopInfo *LI,
|
||||
LPPassManager *LPM) {
|
||||
// for now, only unroll loops that contain a single exit
|
||||
SmallVector<BasicBlock*, 4> ExitingBlocks;
|
||||
L->getExitingBlocks(ExitingBlocks);
|
||||
if (ExitingBlocks.size() > 1)
|
||||
if (!L->getExitingBlock())
|
||||
return false;
|
||||
|
||||
// Make sure the loop is in canonical form, and there is a single
|
||||
|
Loading…
x
Reference in New Issue
Block a user