diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-01-22 13:44:49 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-01-22 13:44:49 +0000 |
commit | 933673d8786a905f77b3366f1a6630ab45f6db20 (patch) | |
tree | 926b0513cc8bbdea7f210cd9ce4462491788ac69 /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp | |
parent | 6202a3ad67d776179cb2952cd1b3dafcc2d04998 (diff) | |
download | bcm5719-llvm-933673d8786a905f77b3366f1a6630ab45f6db20.tar.gz bcm5719-llvm-933673d8786a905f77b3366f1a6630ab45f6db20.zip |
[X86][SSE] Canonicalize OR(AND(X,C),AND(Y,~C)) -> OR(AND(X,C),ANDNP(C,Y))
For constant bit select patterns, replace one AND with a ANDNP, allowing us to reuse the constant mask. Only do this if the mask has multiple uses (to avoid losing load folding) or if we have XOP as its VPCMOV can handle most folding commutations.
This also requires computeKnownBitsForTargetNode support for X86ISD::ANDNP and X86ISD::FOR to prevent regressions in fabs/fcopysign patterns.
Differential Revision: https://reviews.llvm.org/D55935
llvm-svn: 351819
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions