[llvm] [InstCombine] Fix behavior for `(fmul (sitfp x), 0)` (PR #85298)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 12:48:31 PDT 2024


goldsteinn wrote:

> I haven't checked whether it might be safe in this context, but the m_NonZero you added here is an unacceptable footgun: It allows undef values that may refine to zero.

This matches `m_NonZeroFp` (Which I guess I could have just used instead).

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


More information about the llvm-commits mailing list