Skip to content

Commit d2eb662

Browse files
author
Evan Cheng
committed
Update
llvm-svn: 27643
1 parent 3067453 commit d2eb662

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

llvm/lib/Target/X86/README.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,18 @@ commutative, it is not matched with the load on both sides. The dag combiner
191191
should be made smart enough to cannonicalize the load into the RHS of a compare
192192
when it can invert the result of the compare for free.
193193

194+
How about intrinsics? An example is:
195+
*res = _mm_mulhi_epu16(*A, _mm_mul_epu32(*B, *C));
196+
197+
compiles to
198+
pmuludq (%eax), %xmm0
199+
movl 8(%esp), %eax
200+
movdqa (%eax), %xmm1
201+
pmulhuw %xmm0, %xmm1
202+
203+
The transformation probably requires a X86 specific pass or a DAG combiner
204+
target specific hook.
205+
194206
//===---------------------------------------------------------------------===//
195207

196208
LSR should be turned on for the X86 backend and tuned to take advantage of its

0 commit comments

Comments
 (0)