]> granicus.if.org Git - llvm/commitdiff
[X86] Remove unnecessary line that makes v4f32 FP_ROUND Legal. NFC
authorCraig Topper <craig.topper@intel.com>
Tue, 18 Jun 2019 19:04:03 +0000 (19:04 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 18 Jun 2019 19:04:03 +0000 (19:04 +0000)
FP_ROUND defaults to Legal for all MVT types and nothing changes
the v4f32 entry way from this default. If we needed this line
we'd also need one for v8f32 with AVX512 which we don't have.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363719 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index da66302b1060f06fb58316b030db0988f4b7c332..5ba510d1a33cc69148fe9cf427cf0435433d6685 100644 (file)
@@ -1143,7 +1143,6 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
     setOperationAction(ISD::FP_TO_SINT,         MVT::v8i32, Legal);
 
     setOperationAction(ISD::SINT_TO_FP,         MVT::v8i32, Legal);
-    setOperationAction(ISD::FP_ROUND,           MVT::v4f32, Legal);
 
     if (!Subtarget.hasAVX512())
       setOperationAction(ISD::BITCAST, MVT::v32i1, Custom);