[llvm] [IRBuilder] Fold binary intrinsics (PR #80743)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 22 07:20:45 PST 2024


================
@@ -183,8 +183,8 @@ class ConstantFolder final : public IRBuilderFolder {
     return nullptr;
   }
 
-  Value *FoldBinaryIntrinsic(Intrinsic::ID ID, Value *LHS, Value *RHS,
-                             Type *Ty) const override {
+  Value *FoldBinaryIntrinsic(Intrinsic::ID ID, Value *LHS, Value *RHS, Type *Ty,
+                             Instruction *FMFSource = nullptr) const override {
----------------
dtcxzyw wrote:

```suggestion
                             Instruction *FMFSource) const override {
```

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


More information about the llvm-commits mailing list