[InstCombine] fold (rotate X) eq/ne (0/-1)
authorSanjay Patel <spatel@rotateright.com>
Fri, 3 Sep 2021 18:35:10 +0000 (14:35 -0400)
committerSanjay Patel <spatel@rotateright.com>
Fri, 3 Sep 2021 18:51:35 +0000 (14:51 -0400)
commitfd807601a7845a135ec16af674b70ef667c4d796
tree4ce3226f72b42b7c2035aa0111c6382880426da3
parentd1458903eb5a215aa7eb29229fddb429c7d23ffa
[InstCombine] fold (rotate X) eq/ne (0/-1)

This generalizes the examples shown in:
https://llvm.org/PR51566

https://alive2.llvm.org/ce/z/V-sEy9
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/icmp-fsh.ll