[llvm] Update foldFMulReassoc to respect absent fast-math flags (PR #88589)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 13:55:57 PDT 2024


================
@@ -311,6 +312,31 @@ class BinaryOperator : public Instruction {
     return BO;
   }
 
+  static BinaryOperator *
+  CreateWithFMF(BinaryOps Opc, Value *V1, Value *V2, FastMathFlags FMF,
+                const Twine &Name = "", Instruction *InsertBefore = nullptr) {
+    BinaryOperator *BO = Create(Opc, V1, V2, Name, InsertBefore);
----------------
arsenm wrote:

If you added a new operand/overload to Create, can you avoid the new include? 

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


More information about the llvm-commits mailing list