projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd466aa
)
Turn effective assert(0) into llvm_unreachable
author
Matthias Braun
<matze@braunis.de>
Thu, 14 May 2015 18:33:29 +0000
(18:33 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 14 May 2015 18:33:29 +0000
(18:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237379
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/TargetSchedule.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/TargetSchedule.cpp
b/lib/CodeGen/TargetSchedule.cpp
index c3fdd73b055656dd0ce0b1322241d9f1213ae335..299380d9268b8033d5c577195212e3a2cc19b9d6 100644
(file)
--- a/
lib/CodeGen/TargetSchedule.cpp
+++ b/
lib/CodeGen/TargetSchedule.cpp
@@
-242,13
+242,11
@@
unsigned TargetSchedModel::computeInstrLatency(unsigned Opcode) const {
unsigned SCIdx = TII->get(Opcode).getSchedClass();
const MCSchedClassDesc *SCDesc = SchedModel.getSchedClassDesc(SCIdx);
- unsigned Latency = 0;
if (SCDesc->isValid() && !SCDesc->isVariant())
return computeInstrLatency(*SCDesc);
- assert(Latency && "No MI sched latency");
- return 0;
+ llvm_unreachable("No MI sched latency");
}
unsigned