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

Hongyu Chen via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 13 01:51:58 PDT 2025


================
@@ -4657,3 +4657,57 @@ define i1 @or_fcmp_reassoc4(i1 %x, double %a, double %b) {
   %retval = or i1 %cmp1, %or
   ret i1 %retval
 }
+
----------------
XChy wrote:

Also add tests for `and(fcmp, fcmp)`.

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


More information about the llvm-commits mailing list