mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Remove isImplicitDef TargetInstrDesc flag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48381 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -641,8 +641,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li,
|
||||
return false;
|
||||
|
||||
isLoad = false;
|
||||
const TargetInstrDesc &TID = MI->getDesc();
|
||||
if (TID.isImplicitDef())
|
||||
if (MI->getOpcode() == TargetInstrInfo::IMPLICIT_DEF)
|
||||
return true;
|
||||
|
||||
int FrameIdx = 0;
|
||||
@@ -655,6 +654,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li,
|
||||
return true;
|
||||
|
||||
if (tii_->isTriviallyReMaterializable(MI)) {
|
||||
const TargetInstrDesc &TID = MI->getDesc();
|
||||
isLoad = TID.isSimpleLoad();
|
||||
|
||||
unsigned ImpUse = getReMatImplicitUse(li, MI);
|
||||
@@ -741,9 +741,8 @@ bool LiveIntervals::tryFoldMemoryOperand(MachineInstr* &MI,
|
||||
unsigned InstrIdx,
|
||||
SmallVector<unsigned, 2> &Ops,
|
||||
bool isSS, int Slot, unsigned Reg) {
|
||||
const TargetInstrDesc &TID = MI->getDesc();
|
||||
// If it is an implicit def instruction, just delete it.
|
||||
if (TID.isImplicitDef()) {
|
||||
if (MI->getOpcode() == TargetInstrInfo::IMPLICIT_DEF) {
|
||||
RemoveMachineInstrFromMaps(MI);
|
||||
vrm.RemoveMachineInstrFromMaps(MI);
|
||||
MI->eraseFromParent();
|
||||
|
Reference in New Issue
Block a user