[PATCH] D65620: [AMDGPU] Use S_DENORM_MODE for gfx10
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 17:37:47 PDT 2019
rampitec added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:7543
+ : FP_DENORM_FLUSH_IN_FLUSH_OUT;
+ SPDenormMode |= DPDenormDefault << 2;
+ }
----------------
kerbowa wrote:
> rampitec wrote:
> > I do not think this is right. When you restore mode you need to check current defaults, FP64Denomals and FP32Denormals. Otherwise you are restoring not what it was before.
> This is supposed to return the default for FP64FP16 along with either FP_DENORM_FLUSH_NONE or FP_DENORM_FLUSH_IN_FLUSH_OUT for FP32 based on the `Enable` flag.
It is quite misleading, a better code separation is needed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65620/new/
https://reviews.llvm.org/D65620
More information about the llvm-commits
mailing list