summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2012-05-30 18:54:50 +0000
committerOwen Anderson <resistor@mac.com>2012-05-30 18:54:50 +0000
commit0eda3e1de66a6ad8aaa902afcb602b7a19d398da (patch)
tree63b424f6b66b0d32b9e7b6a57c74a44f78dd7751 /llvm/lib/CodeGen/SelectionDAG
parentc7aaf523e17788dba8b993a224295945dae52d98 (diff)
downloadbcm5719-llvm-0eda3e1de66a6ad8aaa902afcb602b7a19d398da.tar.gz
bcm5719-llvm-0eda3e1de66a6ad8aaa902afcb602b7a19d398da.zip
Switch the canonical FMA term operand order to match both the comment I wrote and the usual LLVM convention.
llvm-svn: 157708
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 647ff6b6b20..3b8489f03b9 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -5771,7 +5771,7 @@ SDValue DAGCombiner::visitFMA(SDNode *N) {
return DAG.getNode(ISD::FADD, N->getDebugLoc(), VT, N0, N2);
// Canonicalize (fma c, x, y) -> (fma x, c, y)
- if (!N0CFP && N1CFP)
+ if (N0CFP && !N1CFP)
return DAG.getNode(ISD::FMA, N->getDebugLoc(), VT, N1, N0, N2);
return SDValue();
OpenPOWER on IntegriCloud