Skip to content

Commit e781b90

Browse files
committed
[InstCombine] Address review comments. NFC.
1 parent 9397e71 commit e781b90

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,7 @@ static bool foldSqrt(CallInst *Call, LibFunc Func, TargetTransformInfo &TTI,
426426
SimplifyQuery(Call->getDataLayout(), &TLI, &DT, &AC, Call)))) {
427427
IRBuilder<> Builder(Call);
428428
Value *NewSqrt =
429-
Builder.CreateIntrinsic(Intrinsic::sqrt, Ty, Arg,
430-
/*FMFSource=*/Call->getFastMathFlags(), "sqrt");
429+
Builder.CreateIntrinsic(Intrinsic::sqrt, Ty, Arg, Call, "sqrt");
431430
Call->replaceAllUsesWith(NewSqrt);
432431

433432
// Explicitly erase the old call because a call with side effects is not

0 commit comments

Comments
 (0)