mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
simplify some code using new predicates
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45689 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -616,8 +616,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li,
|
||||
|
||||
isLoad = false;
|
||||
const TargetInstrDescriptor *TID = MI->getDesc();
|
||||
if ((TID->Flags & M_IMPLICIT_DEF_FLAG) ||
|
||||
tii_->isTriviallyReMaterializable(MI)) {
|
||||
if (TID->isImplicitDef() || tii_->isTriviallyReMaterializable(MI)) {
|
||||
isLoad = TID->isSimpleLoad();
|
||||
return true;
|
||||
}
|
||||
@@ -682,7 +681,7 @@ bool LiveIntervals::tryFoldMemoryOperand(MachineInstr* &MI,
|
||||
unsigned MRInfo = 0;
|
||||
const TargetInstrDescriptor *TID = MI->getDesc();
|
||||
// If it is an implicit def instruction, just delete it.
|
||||
if (TID->Flags & M_IMPLICIT_DEF_FLAG) {
|
||||
if (TID->isImplicitDef()) {
|
||||
RemoveMachineInstrFromMaps(MI);
|
||||
vrm.RemoveMachineInstrFromMaps(MI);
|
||||
MI->eraseFromParent();
|
||||
|
||||
Reference in New Issue
Block a user