diff options
author | Andrew Trick <atrick@apple.com> | 2012-07-02 21:55:12 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-07-02 21:55:12 +0000 |
commit | 2f26b34806f3a2bf7936afc9f331992078840a1f (patch) | |
tree | aed7f0bae4d553fd975a6af2adcd03ef7943e30f /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | dc2e4bcad33cb356964c81cb11d4fc1e67f9b09a (diff) | |
download | llvm-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.cpp | 1 |
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); } |