[llvm] [InstCombine] Improve coverage of `foldSelectValueEquivalence` (PR #88298)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 13:43:01 PDT 2024


goldsteinn wrote:

> See select_replacement_add_eq_vec_undef for the problematic case. The issue is with undef values, not poison values, and that problem exists even if the result is a constant. I've clarified the implementation to that effect.

So I think this can be fixed if the constant result doesn't contain any undefs.

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


More information about the llvm-commits mailing list