remove dead code
authorChris Lattner <sabre@nondot.org>
Wed, 21 Dec 2005 05:27:51 +0000 (05:27 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 21 Dec 2005 05:27:51 +0000 (05:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24896 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcISelDAGToDAG.cpp
lib/Target/SparcV8/SparcV8ISelDAGToDAG.cpp

index 6c84d28311f4fa5b0e401c433fa50cd832f00011..a4e826478cc62b9e487e8263bde5af3253519130 100644 (file)
@@ -552,10 +552,6 @@ SparcV8TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy,
   Chain = DAG.getNode(ISD::CALLSEQ_END, MVT::Other, Chain,
                       DAG.getConstant(ArgsSize, getPointerTy()));
   
-  MVT::ValueType ActualRetTyVT = RetTyVT;
-  if (RetTyVT >= MVT::i1 && RetTyVT <= MVT::i16)
-    ActualRetTyVT = MVT::i32;   // Promote result to i32.
-  
   return std::make_pair(RetVal, Chain);
 }
 
index 6c84d28311f4fa5b0e401c433fa50cd832f00011..a4e826478cc62b9e487e8263bde5af3253519130 100644 (file)
@@ -552,10 +552,6 @@ SparcV8TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy,
   Chain = DAG.getNode(ISD::CALLSEQ_END, MVT::Other, Chain,
                       DAG.getConstant(ArgsSize, getPointerTy()));
   
-  MVT::ValueType ActualRetTyVT = RetTyVT;
-  if (RetTyVT >= MVT::i1 && RetTyVT <= MVT::i16)
-    ActualRetTyVT = MVT::i32;   // Promote result to i32.
-  
   return std::make_pair(RetVal, Chain);
 }