diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-12-13 16:34:35 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-12-13 16:57:45 -0500 |
commit | 6e6fe2768934d0aabc720d05bcf3df55b1f1733d (patch) | |
tree | d2ae033e72e62ea71f978f6f14b0ad36d909ea45 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 2e5a0b3d835bc3fd8d6d4163e300825a88a0ef98 (diff) | |
download | llvm-6e6fe2768934d0aabc720d05bcf3df55b1f1733d.zip llvm-6e6fe2768934d0aabc720d05bcf3df55b1f1733d.tar.gz llvm-6e6fe2768934d0aabc720d05bcf3df55b1f1733d.tar.bz2 |
[ValueTracking] peek through extends in haveNoCommonBitsSet (2nd try)
The 1st try was not clean because a portion of the code diff
made it into the pre-commit patch to add tests. This should
be the same end result without the muddied code diff.
Original commit message:
In cases with matching extends, this allows changing an 'add'
into an 'or' and narrowing the 'or' which then simplifies to
a constant.
In cases with opposite extends, we just convert to an 'or'
currently, but that could be reduced too.
https://alive2.llvm.org/ce/z/fTHzdb
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions