Skip to content

Commit 7f0015f

Browse files
committed
Address review comment
1 parent 3097f54 commit 7f0015f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/include/llvm/CodeGen/BasicTTIImpl.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2388,8 +2388,7 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
23882388
// operation.
23892389
Type *ExpRetTy =
23902390
VectorType::get(ArgTy, cast<VectorType>(RetTy)->getElementCount());
2391-
IntrinsicCostAttributes Attrs(Intrinsic::uadd_sat, ExpRetTy, {},
2392-
FastMathFlags());
2391+
IntrinsicCostAttributes Attrs(Intrinsic::uadd_sat, ExpRetTy, {}, FMF);
23932392
InstructionCost Cost =
23942393
thisT()->getTypeBasedIntrinsicInstrCost(Attrs, CostKind);
23952394
Cost += thisT()->getCmpSelInstrCost(BinaryOperator::ICmp, ExpRetTy, RetTy,

0 commit comments

Comments
 (0)