diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-08-29 18:37:37 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-08-29 18:37:37 +0000 |
commit | 780413d4622e3977227c8e11ef27ba53bdee0d94 (patch) | |
tree | 1c47b012c9bcbaffc5ae4e393feb18e38db74d96 | |
parent | e50794adda9256d6fe2f378c01ee3c44e1fbd86c (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29957 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 9697f25913..6605473f17 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -312,7 +312,9 @@ void X86DAGToDAGISel::InstructionSelectPreprocess(SelectionDAG &DAG) { SDOperand N1 = I->getOperand(1); SDOperand N2 = I->getOperand(2); - if (!N1.hasOneUse()) + if (MVT::isFloatingPoint(N1.getValueType()) && + MVT::isVector(N1.getValueType()) && + !N1.hasOneUse()) continue; bool RModW = false; |