llvm.org GIT mirror llvm / fcf81db
Remove the hack that turned an {S,U}MUL_LOHI with an unused high result into a MUL late in the X86 codegen process. ISD::MUL is once again Legal on X86, so this is no longer needed. And, the hack was suboptimal; see PR1874 for details. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47567 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 12 years ago
1 changed file(s) with 0 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
12231223 SDOperand N0 = Node->getOperand(0);
12241224 SDOperand N1 = Node->getOperand(1);
12251225
1226 // There are several forms of IMUL that just return the low part and
1227 // don't have fixed-register operands. If we don't need the high part,
1228 // use these instead. They can be selected with the generated ISel code.
1229 if (NVT != MVT::i8 &&
1230 N.getValue(1).use_empty()) {
1231 N = CurDAG->getNode(ISD::MUL, NVT, N0, N1);
1232 break;
1233 }
1234
12351226 bool isSigned = Opcode == ISD::SMUL_LOHI;
12361227 if (!isSigned)
12371228 switch (NVT) {