mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Replace TargetInstrInfo::isInvariantLoad and its target-specific
implementations with a new MachineInstr::isInvariantLoad, which uses MachineMemOperands and is target-independent. This brings MachineLICM and other functionality to targets which previously lacked an isInvariantLoad implementation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83475 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -375,7 +375,7 @@ void ScheduleDAGInstrs::BuildSchedGraph() {
|
||||
// Treat all other stores conservatively.
|
||||
goto new_chain;
|
||||
} else if (TID.mayLoad()) {
|
||||
if (TII->isInvariantLoad(MI)) {
|
||||
if (MI->isInvariantLoad()) {
|
||||
// Invariant load, no chain dependencies needed!
|
||||
} else if (const Value *V = getUnderlyingObjectForInstr(MI)) {
|
||||
// A load from a specific PseudoSourceValue. Add precise dependencies.
|
||||
|
||||
Reference in New Issue
Block a user