[PATCH] D130339: [CodeGen] Generate efficient assembly for freeze(poison) version of `mm*_cast*` intel intrinsics

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 29 08:16:24 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/lib/Target/X86/X86InstrVecCompiler.td:74
+
+  def : Pat<(VT (insert_subvector (freeze (VT undef)), subRC:$src,
+                                  (iPTR 0))),
----------------
Could we add a generic pattern for "undef_or_freeze_undef" that we could use here as I imagine a lot more places are going to need something like this and we should try to avoid duplication if we can?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130339/new/

https://reviews.llvm.org/D130339



More information about the llvm-commits mailing list