projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add an assert to verify that we don't see an
[oota-llvm.git]
/
lib
/
Target
/
X86
/
X86ISelDAGToDAG.cpp
diff --git
a/lib/Target/X86/X86ISelDAGToDAG.cpp
b/lib/Target/X86/X86ISelDAGToDAG.cpp
index 75e9faecb290b3f72e95c2b170acf1e94153e1c1..af6576b83a441030ac5b9f3eb3c1eaec2c9659a8 100644
(file)
--- a/
lib/Target/X86/X86ISelDAGToDAG.cpp
+++ b/
lib/Target/X86/X86ISelDAGToDAG.cpp
@@
-1221,6
+1221,9
@@
SDNode *X86DAGToDAGISel::Select(SDOperand N) {
case ISD::SMUL_LOHI:
case ISD::UMUL_LOHI: {
+ assert(!N.getValue(1).use_empty() &&
+ "A MUL_LOHI with an unused high result should fold to a MUL!");
+
SDOperand N0 = Node->getOperand(0);
SDOperand N1 = Node->getOperand(1);