aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-07-02 21:55:12 +0000
committerAndrew Trick <atrick@apple.com>2012-07-02 21:55:12 +0000
commit2f26b34806f3a2bf7936afc9f331992078840a1f (patch)
treeaed7f0bae4d553fd975a6af2adcd03ef7943e30f /llvm/lib/CodeGen/MachineScheduler.cpp
parentdc2e4bcad33cb356964c81cb11d4fc1e67f9b09a (diff)
downloadllvm-2f26b34806f3a2bf7936afc9f331992078840a1f.zip
llvm-2f26b34806f3a2bf7936afc9f331992078840a1f.tar.gz
llvm-2f26b34806f3a2bf7936afc9f331992078840a1f.tar.bz2
misched: allow NULL InstrItineraries.
llvm-svn: 159599
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 18e61e0..847bf1e 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -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);
}