mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +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
|
||||
// the copy.
|
||||
Instruction *New;
|
||||
if (InsertedBlocks.empty()) {
|
||||
if (InsertedBlocks.size() == 1) {
|
||||
I.getParent()->getInstList().remove(&I);
|
||||
ExitBlock->getInstList().insert(InsertPt, &I);
|
||||
New = &I;
|
||||
|
Loading…
Reference in New Issue
Block a user