[X86] Add DAG combine to turn (trunc (srl (mul ext, ext), 16) into PMULHW/PMULHUW.
authorCraig Topper <craig.topper@intel.com>
Sat, 21 Apr 2018 18:39:21 +0000 (18:39 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 21 Apr 2018 18:39:21 +0000 (18:39 +0000)
commitfe59bea07b82564025b7b1e6980e571025d8149d
treeb3364768deeca47535b8d7fa1514d1150a05c81d
parent1b223e75daa15a39340edc6eb6171bc816989ebf
[X86] Add DAG combine to turn (trunc (srl (mul ext, ext), 16) into PMULHW/PMULHUW.

Ultimately I want to use this to remove the intrinsics for these instructions.

llvm-svn: 330520
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/pmulh.ll