mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Renaming:
isTriviallyReMaterializable -> hasNoSideEffects isReallyTriviallyReMaterializable -> isTriviallyReMaterializable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44702 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -613,7 +613,7 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li,
|
||||
return false;
|
||||
|
||||
isLoad = false;
|
||||
if (tii_->isTriviallyReMaterializable(MI)) {
|
||||
if (tii_->hasNoSideEffects(MI)) {
|
||||
isLoad = MI->getInstrDescriptor()->Flags & M_LOAD_FLAG;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ namespace {
|
||||
if (TID->ImplicitUses || !I.getNumOperands()) return false;
|
||||
|
||||
MachineOpCode Opcode = TID->Opcode;
|
||||
return TII->isTriviallyReMaterializable(&I) &&
|
||||
return TII->hasNoSideEffects(&I) &&
|
||||
// FIXME: Below necessary?
|
||||
!(TII->isReturn(Opcode) ||
|
||||
TII->isTerminatorInstr(Opcode) ||
|
||||
|
||||
Reference in New Issue
Block a user