[PATCH] D49561: AMDGPU: Try to make isKnownNeverSNan more accurate

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 20 13:16:03 PDT 2018


rampitec added a comment.

>> 1. Should we care about sNaNs with FP exceptions disabled?
> 
> Yes. This has to work. The OpenCL conformance tests check for this

OK. Makes sense. Just maybe we need to tell llvm that we actually support exceptions, which should not necessarily mean we trap on them.

>> 4. UnsafeAlgebra includes NoNaNs and thus all of the above applies.
> 
> I do not agree with this. The per-instruction flags have decoupled the unsafe algebra properties from no-nans, and the per-function/global flags should follow suit.

OK, UnsafeAlgebra is probably not a right condition. FastMathFlags::isFast() definitely is.


https://reviews.llvm.org/D49561





More information about the llvm-commits mailing list