[PATCH] D20860: [X86][SSE] Replace (V)CVTTPS2DQ and VCVTTPD2DQ truncating (round to zero) f32/f64 to i32 with generic IR (llvm)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 2 03:09:37 PDT 2016


RKSimon added inline comments.

================
Comment at: lib/Target/X86/X86InstrSSE.td:2111-2112
@@ -2125,4 +2110,4 @@
 let Predicates = [HasAVX, NoVLX] in {
   def : Pat<(v4i32 (fp_to_sint (v4f64 VR256:$src))),
             (VCVTTPD2DQYrr VR256:$src)>;
   def : Pat<(v4i32 (fp_to_sint (loadv4f64 addr:$src))),
----------------
ab wrote:
> Have you looked into moving the patterns into the instruction defs? Might be tricky with NoVLX though.
I'm afraid not - there doesn't seem to be a way to filter patterns if they are in the def.


Repository:
  rL LLVM

http://reviews.llvm.org/D20860





More information about the llvm-commits mailing list