[llvm] r363719 - [X86] Remove unnecessary line that makes v4f32 FP_ROUND Legal. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 18 12:04:04 PDT 2019


Author: ctopper
Date: Tue Jun 18 12:04:03 2019
New Revision: 363719

URL: http://llvm.org/viewvc/llvm-project?rev=363719&view=rev
Log:
[X86] Remove unnecessary line that makes v4f32 FP_ROUND Legal. NFC

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.

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=363719&r1=363718&r2=363719&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Jun 18 12:04:03 2019
@@ -1143,7 +1143,6 @@ X86TargetLowering::X86TargetLowering(con
     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);




More information about the llvm-commits mailing list