aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>2024-05-16 13:34:22 +0200
committerGitHub <noreply@github.com>2024-05-16 13:34:22 +0200
commit0bc1ec5cda8d68a681534bda9fd121b7f58fb495 (patch)
treed5861868d8bc242f20e12a7b95a31aec5e58f172 /lldb/packages/Python/lldbsuite/test
parent46bc54f4e688870da8356a9b85257ffb12d47e1f (diff)
downloadllvm-0bc1ec5cda8d68a681534bda9fd121b7f58fb495.zip
llvm-0bc1ec5cda8d68a681534bda9fd121b7f58fb495.tar.gz
llvm-0bc1ec5cda8d68a681534bda9fd121b7f58fb495.tar.bz2
[GlobalISel] Reduce KnownBits usage in matcher combines (#92381)
Two icmp/and combines forced computation of KnownBits on all operands everytime. We can avoid computing KnownBits on the LHS by exploiting a couple of properties: - Constants are always on the RHS for those instructions. If we have no KnownBits on the RHS, we can bail out early and avoid computing LHS knownbits. - For icmp uge/ult 0, we don't need to know the KBs of the LHS to infer the result This allows to save some KnownBits calls, which are very expensive, without affecting codegen.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions