Solves issue https://github.com/llvm/llvm-project/issues/63321.
This patch explicitly folds (-1 + A) & B into A ? 0 : B. Additional trunc will be created when A is neither i1 nor <N x i1>.
Differential D153148
[InstCombine] Fold `(-1 + A) & B` into `A ? 0 : B` where A is effectively a bool dtcxzyw on Jun 16 2023, 8:39 AM. Authored by
Details Solves issue https://github.com/llvm/llvm-project/issues/63321. This patch explicitly folds (-1 + A) & B into A ? 0 : B. Additional trunc will be created when A is neither i1 nor <N x i1>.
Diff Detail
Event Timeline
|
Please land this code cleanup as a separate NFC commit.