[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
================
@@ -117,9 +117,10 @@ class InstSimplifyFolder final : public IRBuilderFolder {
return simplifyCastInst(Op, V, DestTy, SQ);
}
- Value *FoldBinaryIntrinsic(Intrinsic::ID ID, Value *LHS, Value *RHS,
- Type *Ty) const override {
- return simplifyBinaryIntrinsic(ID, Ty, LHS, RHS, SQ, nullptr);
+ Value *FoldBinaryIntrinsic(Intrinsic::ID ID, Value *LHS, Value *RHS, Type *Ty,
+ Instruction *FMFSource = nullptr) const override {
----------------
dtcxzyw wrote:
```suggestion
Instruction *FMFSource) const override {
```
Don't use default argument in an overridden virtual function.
https://github.com/llvm/llvm-project/pull/80743
More information about the llvm-commits
mailing list