mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
A PHI in this basic block is a use in another basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132805 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ca5bec22e0
commit
c2e9a50dfb
@ -239,7 +239,7 @@ bool TailDuplicatePass::TailDuplicateBlocks(MachineFunction &MF) {
|
||||
MachineOperand &UseMO = UI.getOperand();
|
||||
MachineInstr *UseMI = &*UI;
|
||||
++UI;
|
||||
if (UseMI->getParent() == DefBB)
|
||||
if (UseMI->getParent() == DefBB && !UseMI->isPHI())
|
||||
continue;
|
||||
SSAUpdate.RewriteUse(UseMO);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user