mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +00:00
Only run CoalesceExtSubRegs when we can expect LiveIntervalAnalysis to clean up
the inserted INSERT_SUBREGs after us. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106345 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
86050dc8cc
commit
fe181f4848
@ -1397,8 +1397,11 @@ bool TwoAddressInstructionPass::EliminateRegSequences() {
|
|||||||
MI->eraseFromParent();
|
MI->eraseFromParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try coalescing some EXTRACT_SUBREG instructions.
|
// Try coalescing some EXTRACT_SUBREG instructions. This can create
|
||||||
CoalesceExtSubRegs(RealSrcs, DstReg);
|
// INSERT_SUBREG instructions that must have <undef> flags added by
|
||||||
|
// LiveIntervalAnalysis, so only run it when LiveVariables is available.
|
||||||
|
if (LV)
|
||||||
|
CoalesceExtSubRegs(RealSrcs, DstReg);
|
||||||
}
|
}
|
||||||
|
|
||||||
RegSequences.clear();
|
RegSequences.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user