[PATCH] D45651: [X86] Add DAG combine to turn (trunc (srl (mul ext, ext), 16) into PMULHW/PMULHUW.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 14 04:54:01 PDT 2018


RKSimon added a comment.

This doesn't seem x86 specific - any reason not to include it in dagcombine?



================
Comment at: test/CodeGen/X86/pmulh.ll:7
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512bw | FileCheck %s --check-prefix=AVX --check-prefix=AVX512 --check-prefix=AVX512BW
+
+define <4 x i16> @mulhuw_v4i16(<4 x i16> %a, <4 x i16> %b) {
----------------
Commit this with current codegen to show diff.


Repository:
  rL LLVM

https://reviews.llvm.org/D45651





More information about the llvm-commits mailing list