commit | 4f97b10b4803f27ef9e2d5b4cba8398a1dfdb052 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Fri Oct 23 08:29:27 2020 -0400 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Oct 29 06:31:10 2020 -0700 |
tree | a28fe70143b9560022dfb952498f1917633e245c | |
parent | 0d8ab7999eb837218e4bc36769e06369a0438676 [diff] |
[ValueTracking] add range limits for ctlz As discussed in D89952, instcombine can sometimes find a way to reduce similar patterns, but it is incomplete. InstSimplify uses the computeConstantRange() ValueTracking analysis via simplifyICmpWithConstant(), so we just need to fill in the max value of ctlz to process any "icmp pred ctlz(X), C" pattern (the min value is initialized to zero automatically). Follow-up to D89976. GitOrigin-RevId: 3fb0d6b0d55b52a214a3e5118dda3c7d3422782a