mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 09:18:30 +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