[PATCH] D72820: [FPEnv] Add pragma FP_CONTRACT support under strict FP.
Kevin P. Neal via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 24 05:02:08 PST 2020
kpn added inline comments.
================
Comment at: clang/lib/CodeGen/CGExprScalar.cpp:3381
+ "constrained mode");
+ FMulAdd = Builder.CreateCall(
+ CGF.CGM.getIntrinsic(llvm::Intrinsic::experimental_constrained_fmuladd,
----------------
craig.topper wrote:
> Doesn't this need to be CreateConstrainedFPCall so that the strictfp attribute is added? That will take care of adding the metadata operands too.
Is this code tested? I ran into a bug yesterday where CreateCall was used with a constrained intrinsic and the Instruction class blew up because the function signature was wrong. I wasn't passing in the metadata arguments.
So, yes, it should be, and it would might make sense for the patch to have test coverage that catches any other cases of this.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72820/new/
https://reviews.llvm.org/D72820
More information about the cfe-commits
mailing list