mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use an existing method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141855 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ab1d1e900
commit
326e491ce7
@ -674,7 +674,7 @@ void StrongPHIElimination::InsertCopiesForPHI(MachineInstr *PHI,
|
||||
if (PHIColor && SrcColor == PHIColor) {
|
||||
LiveInterval &SrcInterval = LI->getInterval(SrcReg);
|
||||
SlotIndex PredIndex = LI->getMBBEndIdx(PredBB);
|
||||
VNInfo *SrcVNI = SrcInterval.getVNInfoAt(PredIndex.getPrevSlot());
|
||||
VNInfo *SrcVNI = SrcInterval.getVNInfoBefore(PredIndex);
|
||||
assert(SrcVNI);
|
||||
SrcVNI->setHasPHIKill(true);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user