diff options
author | Pierre van Houtryve <pierre.vanhoutryve@amd.com> | 2024-05-16 13:34:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-16 13:34:22 +0200 |
commit | 0bc1ec5cda8d68a681534bda9fd121b7f58fb495 (patch) | |
tree | d5861868d8bc242f20e12a7b95a31aec5e58f172 /lldb/packages/Python/lldbsuite/test/configuration.py | |
parent | 46bc54f4e688870da8356a9b85257ffb12d47e1f (diff) | |
download | llvm-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/configuration.py')
0 files changed, 0 insertions, 0 deletions