[llvm] [NVVM] mark math intrinsics as speculatable, default-attrs (PR #94481)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 11:23:01 PDT 2024
================
@@ -691,51 +691,51 @@ let TargetPrefix = "nvvm" in {
def int_nvvm_div_approx_ftz_f : ClangBuiltin<"__nvvm_div_approx_ftz_f">,
DefaultAttrsIntrinsic<[llvm_float_ty], [llvm_float_ty, llvm_float_ty],
- [IntrNoMem]>;
+ [IntrNoMem, IntrSpeculatable]>;
----------------
Artem-B wrote:
Do we want to speculate something as expensive as division?
I do not think we have a good way to model costs for the expensive instructions and keeping them non-speculatable is an indirect way to say "those are expensive, only use when you really need to."
https://github.com/llvm/llvm-project/pull/94481
More information about the llvm-commits
mailing list