Don't performance load/op/store transformation if op produces a floating point

or vector result. X86 does not have load/mod/store variants of those
instructions.

llvm-svn: 29957
This commit is contained in:
Evan Cheng 2006-08-29 18:37:37 +00:00
parent 358b9ed98a
commit dfb85155dc
1 changed files with 3 additions and 1 deletions

View File

@ -312,7 +312,9 @@ void X86DAGToDAGISel::InstructionSelectPreprocess(SelectionDAG &DAG) {
SDOperand N1 = I->getOperand(1); SDOperand N1 = I->getOperand(1);
SDOperand N2 = I->getOperand(2); SDOperand N2 = I->getOperand(2);
if (!N1.hasOneUse()) if (MVT::isFloatingPoint(N1.getValueType()) &&
MVT::isVector(N1.getValueType()) &&
!N1.hasOneUse())
continue; continue;
bool RModW = false; bool RModW = false;