[llvm] [InstCombine] Fold fcmp of two selects with same constant pair (PR #186591)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 17 09:46:38 PDT 2026


================
@@ -92,8 +92,8 @@ class LLVM_LIBRARY_VISIBILITY InstCombinerImpl final
   Instruction *visitFNeg(UnaryOperator &I);
   Instruction *visitAdd(BinaryOperator &I);
   Instruction *visitFAdd(BinaryOperator &I);
-  Value *OptimizePointerDifference(
-      Value *LHS, Value *RHS, Type *Ty, bool isNUW);
+  Value *OptimizePointerDifference(Value *LHS, Value *RHS, Type *Ty,
----------------
dtcxzyw wrote:

Please revert unrelated format changes.


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


More information about the llvm-commits mailing list