summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-07-19 16:50:03 +0000
committerNate Begeman <natebegeman@mac.com>2005-07-19 16:50:03 +0000
commit1ac40a124515a6ca7248502493bbbc8be98671d2 (patch)
treeb342bde0ba13ea0b687252aa8a18ab738f2cfd94 /llvm/lib
parentd37d854cb2194ff31c767cdd07e2be960dd204a9 (diff)
downloadbcm5719-llvm-1ac40a124515a6ca7248502493bbbc8be98671d2.tar.gz
bcm5719-llvm-1ac40a124515a6ca7248502493bbbc8be98671d2.zip
Remove unnecessary FP_EXTEND. This causes worse codegen for SSE.
llvm-svn: 22469
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 05d84609a0f..dae4ddd8cf1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -403,9 +403,6 @@ void SelectionDAGLowering::visitRet(ReturnInst &I) {
Op1 = DAG.getNode(ISD::ZERO_EXTEND, TmpVT, Op1);
break;
case MVT::f32:
- // Extend float to double.
- Op1 = DAG.getNode(ISD::FP_EXTEND, MVT::f64, Op1);
- break;
case MVT::i64:
case MVT::f64:
break; // No extension needed!
OpenPOWER on IntegriCloud