1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

misched: allow NULL InstrItineraries.

llvm-svn: 159599
This commit is contained in:
Andrew Trick 2012-07-02 21:55:12 +00:00
parent 4081d7f1e7
commit 8bd81116b5

View File

@ -408,6 +408,7 @@ public:
/// getNumMicroOps - Return the number of issue slots required for this MI.
unsigned getNumMicroOps(MachineInstr *MI) const {
if (!InstrItins) return 1;
int UOps = InstrItins->getNumMicroOps(MI->getDesc().getSchedClass());
return (UOps >= 0) ? UOps : TII->getNumMicroOps(InstrItins, MI);
}