Skip to content
Commit 444f08c8 authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[InstCombine] fold icmp of truncated left shift, part 2

(trunc (1 << Y) to iN) == 2**C --> Y == C
(trunc (1 << Y) to iN) != 2**C --> Y != C
https://alive2.llvm.org/ce/z/xnFPo5

Follow-up to d9e1f9d7. This was a suggested
enhancement mentioned in issue #51889.
parent 2944f8ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment