Skip to content
Commit 63f0833e authored by Yaxun (Sam) Liu's avatar Yaxun (Sam) Liu
Browse files

[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
parent 7b27167a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment