[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 07:44:53 PST 2015


RKSimon added inline comments.

================
Comment at: lib/Target/X86/X86ISelLowering.cpp:25347
@@ +25346,3 @@
+  // element is in the range [1, 256].
+  if (IsConstVectorInRange(Operands[1], 1, 256) &&
+      Operands[0].getOpcode() == ISD::ZERO_EXTEND &&
----------------
Shouldn't the upper limit be 65536 for pavgw?


http://reviews.llvm.org/D14761





More information about the llvm-commits mailing list