diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-12-13 15:16:47 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-12-13 15:53:20 -0500 |
commit | 7520d187cf0dedcf5085f71bc1a5472c75cc8dbb (patch) | |
tree | 4a69ba2eeb14290eeb74eeced3ec60df99b1a7c4 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | c8cba0bc4a8c9f4f3f10e17f601ed924dfb82bef (diff) | |
download | llvm-7520d187cf0dedcf5085f71bc1a5472c75cc8dbb.zip llvm-7520d187cf0dedcf5085f71bc1a5472c75cc8dbb.tar.gz llvm-7520d187cf0dedcf5085f71bc1a5472c75cc8dbb.tar.bz2 |
[ValueTracking] peek through extends in haveNoCommonBitsSet
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