[llvm] fc02d9f - [X86] Add cost table entry for v2i32->v2f64 fp_to_uint with avx512.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 26 20:02:02 PDT 2020


Author: Craig Topper
Date: 2020-04-26T19:59:01-07:00
New Revision: fc02d9f3c6b709a241eb3963366fa6aa09c1ee21

URL: https://github.com/llvm/llvm-project/commit/fc02d9f3c6b709a241eb3963366fa6aa09c1ee21
DIFF: https://github.com/llvm/llvm-project/commit/fc02d9f3c6b709a241eb3963366fa6aa09c1ee21.diff

LOG: [X86] Add cost table entry for v2i32->v2f64 fp_to_uint with avx512.

We're currently getting this from the default implementation. But
I don't like how the cost model came to this answer and I might
be making some changes there.

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86TargetTransformInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
index fa2c7c5019a5..ca2bf9a05fa0 100644
--- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
+++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp
@@ -1610,6 +1610,7 @@ int X86TTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src,
 
     { ISD::FP_TO_UINT,  MVT::v2i32,  MVT::v2f32,  1 },
     { ISD::FP_TO_UINT,  MVT::v4i32,  MVT::v4f32,  1 },
+    { ISD::FP_TO_UINT,  MVT::v2i32,  MVT::v2f64,  1 },
     { ISD::FP_TO_UINT,  MVT::v4i32,  MVT::v4f64,  1 },
     { ISD::FP_TO_UINT,  MVT::v8i32,  MVT::v8f32,  1 },
   };


        


More information about the llvm-commits mailing list