aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2022-09-08 10:44:49 -0400
committerSanjay Patel <spatel@rotateright.com>2022-09-08 10:48:14 -0400
commitd9e1f9d7591b0d3e4df3c0e33ffd8984fb1632a5 (patch)
tree31f127b271a40df858953d70d18c94dca9f5f10a /llvm/lib/Object/MachOObjectFile.cpp
parent39fcb4a2684ab1ded9ef62d618c1f26c5db30fd2 (diff)
downloadllvm-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