mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Rename RemoveCopiesFromValNo to TurnCopiesFromValNoToImpDefs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73479 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -963,11 +963,11 @@ bool SimpleRegisterCoalescing::CanCoalesceWithImpDef(MachineInstr *CopyMI,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// RemoveCopiesFromValNo - The specified value# is defined by an implicit
|
/// TurnCopiesFromValNoToImpDefs - The specified value# is defined by an
|
||||||
/// def and it is being removed. Turn all copies from this value# into
|
/// implicit_def and it is being removed. Turn all copies from this value#
|
||||||
/// implicit_defs.
|
/// into implicit_defs.
|
||||||
void SimpleRegisterCoalescing::RemoveCopiesFromValNo(LiveInterval &li,
|
void SimpleRegisterCoalescing::TurnCopiesFromValNoToImpDefs(LiveInterval &li,
|
||||||
VNInfo *VNI) {
|
VNInfo *VNI) {
|
||||||
SmallVector<MachineInstr*, 4> ImpDefs;
|
SmallVector<MachineInstr*, 4> ImpDefs;
|
||||||
MachineOperand *LastUse = NULL;
|
MachineOperand *LastUse = NULL;
|
||||||
unsigned LastUseIdx = li_->getUseIndex(VNI->def);
|
unsigned LastUseIdx = li_->getUseIndex(VNI->def);
|
||||||
@ -1775,7 +1775,7 @@ bool SimpleRegisterCoalescing::JoinCopy(CopyRec &TheCopy, bool &Again) {
|
|||||||
VNInfo *ImpVal = LR->valno;
|
VNInfo *ImpVal = LR->valno;
|
||||||
assert(ImpVal->def == CopyIdx);
|
assert(ImpVal->def == CopyIdx);
|
||||||
unsigned NextDef = LR->end;
|
unsigned NextDef = LR->end;
|
||||||
RemoveCopiesFromValNo(*ResDstInt, ImpVal);
|
TurnCopiesFromValNoToImpDefs(*ResDstInt, ImpVal);
|
||||||
ResDstInt->removeValNo(ImpVal);
|
ResDstInt->removeValNo(ImpVal);
|
||||||
LR = ResDstInt->FindLiveRangeContaining(NextDef);
|
LR = ResDstInt->FindLiveRangeContaining(NextDef);
|
||||||
if (LR != ResDstInt->end() && LR->valno->def == NextDef) {
|
if (LR != ResDstInt->end() && LR->valno->def == NextDef) {
|
||||||
|
@ -219,10 +219,10 @@ namespace llvm {
|
|||||||
bool CanCoalesceWithImpDef(MachineInstr *CopyMI,
|
bool CanCoalesceWithImpDef(MachineInstr *CopyMI,
|
||||||
LiveInterval &li, LiveInterval &ImpLi) const;
|
LiveInterval &li, LiveInterval &ImpLi) const;
|
||||||
|
|
||||||
/// RemoveCopiesFromValNo - The specified value# is defined by an implicit
|
/// TurnCopiesFromValNoToImpDefs - The specified value# is defined by an
|
||||||
/// def and it is being removed. Turn all copies from this value# into
|
/// implicit_def and it is being removed. Turn all copies from this value#
|
||||||
/// identity copies so they will be removed.
|
/// into implicit_defs.
|
||||||
void RemoveCopiesFromValNo(LiveInterval &li, VNInfo *VNI);
|
void TurnCopiesFromValNoToImpDefs(LiveInterval &li, VNInfo *VNI);
|
||||||
|
|
||||||
/// isWinToJoinVRWithSrcPhysReg - Return true if it's worth while to join a
|
/// isWinToJoinVRWithSrcPhysReg - Return true if it's worth while to join a
|
||||||
/// a virtual destination register with physical source register.
|
/// a virtual destination register with physical source register.
|
||||||
|
Reference in New Issue
Block a user