[llvm-commits] [llvm] r153064 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Pete Cooper
peter_cooper at apple.com
Mon Mar 19 16:38:12 PDT 2012
Author: pete
Date: Mon Mar 19 18:38:12 2012
New Revision: 153064
URL: http://llvm.org/viewvc/llvm-project?rev=153064&view=rev
Log:
f16 FDIV can now be legalized by promoting to f32
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp?rev=153064&r1=153063&r2=153064&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Mon Mar 19 18:38:12 2012
@@ -3600,10 +3600,11 @@
Tmp1, Tmp2, Node->getOperand(2)));
break;
}
+ case ISD::FDIV:
case ISD::FPOW: {
Tmp1 = DAG.getNode(ISD::FP_EXTEND, dl, NVT, Node->getOperand(0));
Tmp2 = DAG.getNode(ISD::FP_EXTEND, dl, NVT, Node->getOperand(1));
- Tmp3 = DAG.getNode(ISD::FPOW, dl, NVT, Tmp1, Tmp2);
+ Tmp3 = DAG.getNode(Node->getOpcode(), dl, NVT, Tmp1, Tmp2);
Results.push_back(DAG.getNode(ISD::FP_ROUND, dl, OVT,
Tmp3, DAG.getIntPtrConstant(0)));
break;
More information about the llvm-commits
mailing list