mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-24 23:29:41 +00:00
misched: allow NULL InstrItineraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b546613d43
commit
3d4ed08574
@ -408,6 +408,7 @@ public:
|
|||||||
|
|
||||||
/// getNumMicroOps - Return the number of issue slots required for this MI.
|
/// getNumMicroOps - Return the number of issue slots required for this MI.
|
||||||
unsigned getNumMicroOps(MachineInstr *MI) const {
|
unsigned getNumMicroOps(MachineInstr *MI) const {
|
||||||
|
if (!InstrItins) return 1;
|
||||||
int UOps = InstrItins->getNumMicroOps(MI->getDesc().getSchedClass());
|
int UOps = InstrItins->getNumMicroOps(MI->getDesc().getSchedClass());
|
||||||
return (UOps >= 0) ? UOps : TII->getNumMicroOps(InstrItins, MI);
|
return (UOps >= 0) ? UOps : TII->getNumMicroOps(InstrItins, MI);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user