[InstCombine] look through 'not' of ctlz/cttz op with 0-is-undef
authorSanjay Patel <spatel@rotateright.com>
Mon, 12 Sep 2022 19:00:08 +0000 (15:00 -0400)
committerSanjay Patel <spatel@rotateright.com>
Mon, 12 Sep 2022 19:06:21 +0000 (15:06 -0400)
commit53eede597e8423410ec48b7c335c76f3b6c4c714
tree2aa2a0f7ab7cf51fe657eec9842ef4cb9225f9d9
parent5ddfac40c368a1ba953ffd01023085607ccdc69a
[InstCombine] look through 'not' of ctlz/cttz op with 0-is-undef

https://alive2.llvm.org/ce/z/MNsC1S

This pattern was flagged at:
https://discourse.llvm.org/t/instcombines-select-optimizations-dont-trigger-reliably/64927
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/select-cmp-cttz-ctlz.ll