diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2006-04-13 05:09:45 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2006-04-13 05:09:45 +0000 |
| commit | d2eb6624150848d73384d769ed6290bb43b41cad (patch) | |
| tree | 69422fb3b4164e6577c1b19a5b575432f8ae257c /llvm/lib | |
| parent | 3067453971e739ed5de6d09b19857f48e65b25f7 (diff) | |
| download | bcm5719-llvm-d2eb6624150848d73384d769ed6290bb43b41cad.tar.gz bcm5719-llvm-d2eb6624150848d73384d769ed6290bb43b41cad.zip | |
Update
llvm-svn: 27643
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/README.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/README.txt b/llvm/lib/Target/X86/README.txt index 08dcf5afc42..f58991728ea 100644 --- a/llvm/lib/Target/X86/README.txt +++ b/llvm/lib/Target/X86/README.txt @@ -191,6 +191,18 @@ commutative, it is not matched with the load on both sides. The dag combiner should be made smart enough to cannonicalize the load into the RHS of a compare when it can invert the result of the compare for free. +How about intrinsics? An example is: + *res = _mm_mulhi_epu16(*A, _mm_mul_epu32(*B, *C)); + +compiles to + pmuludq (%eax), %xmm0 + movl 8(%esp), %eax + movdqa (%eax), %xmm1 + pmulhuw %xmm0, %xmm1 + +The transformation probably requires a X86 specific pass or a DAG combiner +target specific hook. + //===---------------------------------------------------------------------===// LSR should be turned on for the X86 backend and tuned to take advantage of its |

