llvm.org GIT mirror llvm / c2d9b5f
Add an assert to verify that we don't see an {S,U}MUL_LOHI with an unused high value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47569 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 12 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
12201220
12211221 case ISD::SMUL_LOHI:
12221222 case ISD::UMUL_LOHI: {
1223 assert(!N.getValue(1).use_empty() &&
1224 "A MUL_LOHI with an unused high result should fold to a MUL!");
1225
12231226 SDOperand N0 = Node->getOperand(0);
12241227 SDOperand N1 = Node->getOperand(1);
12251228