[Mlir-commits] [clang] [llvm] [mlir] [IRBuilder] Refactor for intrinsics const-folding (NFC) (PR #202738)
Yingwei Zheng
llvmlistbot at llvm.org
Mon Jun 15 09:47:28 PDT 2026
================
@@ -4245,14 +4245,14 @@ bool VectorCombine::foldShuffleChainsToReduce(Instruction &I) {
if (IsPartialReduction)
ReduceInput = Builder.CreateShuffleVector(FinalVecV, ExtractMask);
- CallInst *ReducedResult;
+ Value *ReducedResult;
if (IsFloatReduction) {
Value *Identity = ConstantExpr::getBinOpIdentity(
*CommonBinOp, ReduceVecTy->getElementType(), /*AllowRHSConstant=*/false,
CommonFMF.noSignedZeros());
- ReducedResult = Builder.CreateIntrinsic(ReducedOp, {ReduceVecTy},
- {Identity, ReduceInput});
- ReducedResult->setFastMathFlags(CommonFMF);
+ ReducedResult = Builder.CreateIntrinsic(
----------------
dtcxzyw wrote:
Use FMFSource.
https://github.com/llvm/llvm-project/pull/202738
More information about the Mlir-commits
mailing list