[PATCH] D50781: [X86][SSE] Lower constant vXi8 ISD::SRL/ISD::SRA using PMULLW

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 16 10:21:21 PDT 2018


RKSimon added inline comments.


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:23715
+
+    if (VT == MVT::v16i8 && Subtarget.hasInt256()) {
+      R = Opc == ISD::SRA ? DAG.getSExtOrTrunc(R, dl, ExVT)
----------------
RKSimon wrote:
> craig.topper wrote:
> > Can we do this for v32i8 and useBWIRegs?
> Its caught in code above it (line 32684).
Sorry that's line 23684


Repository:
  rL LLVM

https://reviews.llvm.org/D50781





More information about the llvm-commits mailing list