[llvm] [InstCombine] Optimize redundant floating point comparisons in `or` inst (PR #158097)

Rajveer Singh Bharadwaj via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 13 04:03:15 PDT 2025


Rajveer100 wrote:

> Should check `!isAnd` if you only fold the pattern `or(fcmp, fcmp)`.

Yeah, for the `and` case we just return the other op.

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


More information about the llvm-commits mailing list