mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Keep UsedBlocks info accurate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -160,6 +160,8 @@ void PNE::LowerAtomicPHINode(MachineBasicBlock &MBB,
|
||||
// Realize that the destination register is defined by the PHI copy now, not
|
||||
// the PHI itself.
|
||||
LV->getVarInfo(DestReg).DefInst = PHICopy;
|
||||
|
||||
LV->getVarInfo(IncomingReg).UsedBlocks[MBB.getNumber()] = true;
|
||||
}
|
||||
|
||||
// Adjust the VRegPHIUseCount map to account for the removal of this PHI
|
||||
@ -210,6 +212,7 @@ void PNE::LowerAtomicPHINode(MachineBasicBlock &MBB,
|
||||
// instruction kills the incoming value.
|
||||
//
|
||||
LiveVariables::VarInfo &InRegVI = LV->getVarInfo(SrcReg);
|
||||
InRegVI.UsedBlocks[opBlock.getNumber()] = true;
|
||||
|
||||
// Loop over all of the successors of the basic block, checking to see
|
||||
// if the value is either live in the block, or if it is killed in the
|
||||
|
Reference in New Issue
Block a user