mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
MI-Sched cleanup. If an instruction has no valid sched class, do not attempt to check for a variant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179451 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f521997303
commit
6a22dba485
@ -128,6 +128,8 @@ resolveSchedClass(const MachineInstr *MI) const {
|
|||||||
// Get the definition's scheduling class descriptor from this machine model.
|
// Get the definition's scheduling class descriptor from this machine model.
|
||||||
unsigned SchedClass = MI->getDesc().getSchedClass();
|
unsigned SchedClass = MI->getDesc().getSchedClass();
|
||||||
const MCSchedClassDesc *SCDesc = SchedModel.getSchedClassDesc(SchedClass);
|
const MCSchedClassDesc *SCDesc = SchedModel.getSchedClassDesc(SchedClass);
|
||||||
|
if (!SCDesc->isValid())
|
||||||
|
return SCDesc;
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
unsigned NIter = 0;
|
unsigned NIter = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user