mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	Make SINT_TO_FP/UINT_TO_FP vector legalization queries query on the
integer type to be consistent with normal operation legalization. No visible change because nothing is actually using this at the moment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -129,6 +129,7 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) { | ||||
|   if (!HasVectorValue) | ||||
|     return TranslateLegalizeResults(Op, Result); | ||||
|  | ||||
|   MVT QueryType; | ||||
|   switch (Op.getOpcode()) { | ||||
|   default: | ||||
|     return TranslateLegalizeResults(Op, Result); | ||||
| @@ -162,8 +163,6 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) { | ||||
|   case ISD::ANY_EXTEND: | ||||
|   case ISD::TRUNCATE: | ||||
|   case ISD::SIGN_EXTEND: | ||||
|   case ISD::SINT_TO_FP: | ||||
|   case ISD::UINT_TO_FP: | ||||
|   case ISD::FP_TO_SINT: | ||||
|   case ISD::FP_TO_UINT: | ||||
|   case ISD::FNEG: | ||||
| @@ -183,10 +182,15 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) { | ||||
|   case ISD::FRINT: | ||||
|   case ISD::FNEARBYINT: | ||||
|   case ISD::FFLOOR: | ||||
|     QueryType = Node->getValueType(0); | ||||
|     break; | ||||
|   case ISD::SINT_TO_FP: | ||||
|   case ISD::UINT_TO_FP: | ||||
|     QueryType = Node->getOperand(0).getValueType(); | ||||
|     break; | ||||
|   } | ||||
|  | ||||
|   switch (TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0))) { | ||||
|   switch (TLI.getOperationAction(Node->getOpcode(), QueryType)) { | ||||
|   case TargetLowering::Promote: | ||||
|     // "Promote" the operation by bitcasting | ||||
|     Result = PromoteVectorOp(Op); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user