[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:22:58 PST 2017


artem.tamazov requested changes to this revision.
artem.tamazov added a comment.
This revision now requires changes to proceed.

In https://reviews.llvm.org/D11829#680781, @arsenm wrote:

> Change implementation to use max instead of add.
>  min/max/med3 do not flush denormals regardless of the mode,
>  so it is OK to use it whether or not they are enabled.


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


https://reviews.llvm.org/D11829





More information about the llvm-commits mailing list