mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-13 01:15:32 +00:00
Fix bug: LICM/sink_multiple_exits.ll
Thanks for pointing this out John :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
df45bd3803
commit
7d3ced934f
@ -451,7 +451,7 @@ void LICM::sink(Instruction &I) {
|
|||||||
// instruction, otherwise clone the original instruction and insert
|
// instruction, otherwise clone the original instruction and insert
|
||||||
// the copy.
|
// the copy.
|
||||||
Instruction *New;
|
Instruction *New;
|
||||||
if (InsertedBlocks.empty()) {
|
if (InsertedBlocks.size() == 1) {
|
||||||
I.getParent()->getInstList().remove(&I);
|
I.getParent()->getInstList().remove(&I);
|
||||||
ExitBlock->getInstList().insert(InsertPt, &I);
|
ExitBlock->getInstList().insert(InsertPt, &I);
|
||||||
New = &I;
|
New = &I;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user