mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Only run CoalesceExtSubRegs when we can expect LiveIntervalAnalysis to clean up
the inserted INSERT_SUBREGs after us. llvm-svn: 106345
This commit is contained in:
parent
b5fadc47e0
commit
7150b84292
@ -1397,8 +1397,11 @@ bool TwoAddressInstructionPass::EliminateRegSequences() {
|
||||
MI->eraseFromParent();
|
||||
}
|
||||
|
||||
// Try coalescing some EXTRACT_SUBREG instructions.
|
||||
CoalesceExtSubRegs(RealSrcs, DstReg);
|
||||
// Try coalescing some EXTRACT_SUBREG instructions. This can create
|
||||
// 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();
|
||||
|
Loading…
Reference in New Issue
Block a user