diff options
author | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2023-08-23 23:42:14 -0400 |
---|---|---|
committer | Yaxun (Sam) Liu <yaxun.liu@amd.com> | 2023-08-24 19:15:17 -0400 |
commit | 63f0833ec4beb7d6bc63759ad8b336ad6dce0f93 (patch) | |
tree | ebf80d242884a86f98c2ff9820702f4272b5cd8e /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | 7b27167a57c5809e9936fe3c0920054009cb46f4 (diff) | |
download | llvm-63f0833ec4beb7d6bc63759ad8b336ad6dce0f93.zip llvm-63f0833ec4beb7d6bc63759ad8b336ad6dce0f93.tar.gz llvm-63f0833ec4beb7d6bc63759ad8b336ad6dce0f93.tar.bz2 |
[clang] Fix missing contract flag in sqrt intrinsic
The fp options specified through pragma are already encoded in Expr.
This patch takes the same approach used by clang codegen to emit
fastmath flags for fadd insts, basically use RAII to set the
current fastmath flags in IRBuilder, which is then used to emit
sqrt intrinsic.
Fixes: https://github.com/llvm/llvm-project/issues/64653
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions