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

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 12:30:54 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 5300a6731e98fbcf7bca68374e934de737166698 c4467d281aad1935becc2a6fa534c3ee7b33d7b8 -- llvm/include/llvm/IR/InstrTypes.h llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/IR/InstrTypes.h b/llvm/include/llvm/IR/InstrTypes.h
index 4f7bf8980e..8e6bef6921 100644
--- a/llvm/include/llvm/IR/InstrTypes.h
+++ b/llvm/include/llvm/IR/InstrTypes.h
@@ -312,9 +312,10 @@ public:
     return BO;
   }
 
-  static BinaryOperator *
-  CreateWithFMF(BinaryOps Opc, Value *V1, Value *V2, FastMathFlags FMF,
-                const Twine &Name = "", Instruction *InsertBefore = nullptr) {
+  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);
     BO->setFastMathFlags(FMF);
     return BO;

``````````

</details>


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


More information about the llvm-commits mailing list