[PATCH] [AArch64] Add patterns to match normal shift nodes: shl, sra, srl
Jiangning Liu
liujiangning1 at gmail.com
Mon Dec 23 22:56:32 PST 2013
The patch LGTM!
Thanks,
-Jiangning
2013/12/19 Hao Liu <Hao.Liu at arm.com>
> Hi t.p.northover,
>
> Hi Tim and reviewers,
>
> This patch fixes the problem that we can't select shl/sra/srl nodes. Match
> shl to USHL instructions. Match sra/srl to NEG and SSHL/USHL instructions
> (negative shift amounts for SSHL/USHL means right shfit). This solution is
> the same as ARM backend.
>
> Code review. Please.
>
> Thanks,
> -Hao
>
> http://llvm-reviews.chandlerc.com/D2439
>
> Files:
> lib/Target/AArch64/AArch64InstrNEON.td
> test/CodeGen/AArch64/neon-shl-ashr-lshr.ll
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
--
Thanks,
-Jiangning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131224/0a72ae69/attachment.html>
More information about the llvm-commits
mailing list