[PATCH] D11829: AMDGPU/SI: Re-define AMDGPUISD:CLAMP as always clamping between 0.0. and 1.0

Artem Tamazov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 20 03:58:55 PST 2017


artem.tamazov added a comment.

In https://reviews.llvm.org/D11829#681459, @artem.tamazov wrote:

> Starting from Gfx9, min/max/med3 do support denorm modes on data path.


Actually, I do not see anything wrong wrt usage of min/max/med3 for now.
Min/max/med3 is even better than ADD because "ADD X, 0.0"does not preserve the sign of X when X==-0.0.


https://reviews.llvm.org/D11829





More information about the llvm-commits mailing list