[llvm-commits] [llvm] r159599 - /llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Andrew Trick
atrick at apple.com
Mon Jul 2 14:55:12 PDT 2012
Author: atrick
Date: Mon Jul 2 16:55:12 2012
New Revision: 159599
URL: http://llvm.org/viewvc/llvm-project?rev=159599&view=rev
Log:
misched: allow NULL InstrItineraries.
Modified:
llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=159599&r1=159598&r2=159599&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Mon Jul 2 16:55:12 2012
@@ -408,6 +408,7 @@
/// 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);
}
More information about the llvm-commits
mailing list