[llvm] [SCEVExp] Use Builder.CreateBinOp in InsertBinOp. (PR #154148)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 20 10:31:12 PDT 2025


================
@@ -1722,6 +1722,19 @@ class IRBuilderBase {
     return Insert(BinOp, Name);
   }
 
+  Value *CreateBinOpNoWrapFlags(Instruction::BinaryOps Opc, Value *LHS,
+                                Value *RHS, bool IsNUW, bool IsNSW,
+                                const Twine &Name = "") {
+    if (Value *V = Folder.FoldBinOp(Opc, LHS, RHS))
----------------
fhahn wrote:

Updated, I also renamed to function to `CreateNoWrapBinOp`, to be more in-line with the Folder naming.

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


More information about the llvm-commits mailing list