[llvm-branch-commits] [llvm] [DAG] Fold (setcc ((x | x >> c0 | ...) & mask)) sequences (PR #146054)

Pierre van Houtryve via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jul 1 02:12:09 PDT 2025


Pierre-vh wrote:

> Does this also handle the case where _all_ of the values ORed together are shifted, like `(setcc ((x >> c0 | x >> c1 | ...) & mask))` ?

Yes, i added a test for it

https://github.com/llvm/llvm-project/pull/146054


More information about the llvm-branch-commits mailing list