[PATCH] D14761: [X86][SSE] Detect AVG pattern during instruction combine for SSE2/AVX2/AVX512BW.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 23 14:09:26 PST 2015


RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.

LGTM - one minor query and please can you alter a couple of test cases so the zext extends to something other than vXi32? (vXi16 and vXi64 I guess).


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:25668-25669
@@ +25667,4 @@
+    SDValue Avg =
+        detectAVGPattern(St->getValue(), St->getMemoryVT(), DAG, Subtarget, dl);
+    if (Avg.getNode())
+      return DAG.getStore(St->getChain(), dl, Avg, St->getBasePtr(),
----------------
Just to be certain - this can only be called for AVX512 truncate stores?


http://reviews.llvm.org/D14761





More information about the llvm-commits mailing list