diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-09-08 10:44:49 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-09-08 10:48:14 -0400 |
commit | d9e1f9d7591b0d3e4df3c0e33ffd8984fb1632a5 (patch) | |
tree | 31f127b271a40df858953d70d18c94dca9f5f10a /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 39fcb4a2684ab1ded9ef62d618c1f26c5db30fd2 (diff) | |
download | llvm-d9e1f9d7591b0d3e4df3c0e33ffd8984fb1632a5.zip llvm-d9e1f9d7591b0d3e4df3c0e33ffd8984fb1632a5.tar.gz llvm-d9e1f9d7591b0d3e4df3c0e33ffd8984fb1632a5.tar.bz2 |
[InstCombine] Fold icmp of truncated left shift
(trunc (1 << Y) to iN) == 0 --> Y u>= N
(trunc (1 << Y) to iN) != 0 --> Y u< N
These can be generalized in several ways as noted by the TODO
items, but this handles the pattern in the motivating bug report.
Fixes #51889
Differential Revision: https://reviews.llvm.org/D115480
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions