diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-04-18 09:58:59 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-04-18 09:58:59 +0000 |
| commit | 8f87e53462a652921acd0c36c3fc96427ee44932 (patch) | |
| tree | a62946d887d4beebad0af087352e04ea75883c25 /clang/lib | |
| parent | 3deff86657c8a479c4c5d2fdd12c49a75293a8e1 (diff) | |
| download | bcm5719-llvm-8f87e53462a652921acd0c36c3fc96427ee44932.tar.gz bcm5719-llvm-8f87e53462a652921acd0c36c3fc96427ee44932.zip | |
[X86][SSE] Lower ICMP EQ(AND(X,C),C) -> SRA(SHL(X,LOG2(C)),BW-1) iff C is power-of-2.
This replaces the MOVMSK combine introduced at D52121/rL342326
(movmsk (setne (and X, (1 << C)), 0)) -> (movmsk (X << C))
with the more general icmp lowering so it can pick up more cases through bitcasts - notably vXi8 cases which use vXi16 shifts+masks, this patch can remove the mask and use pcmpgtb(0,x) for the sra.
Differential Revision: https://reviews.llvm.org/D60625
llvm-svn: 358651
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions

