This is an archive of the discontinued LLVM Phabricator instance.

HIP: Ensure new denormal mode attributes are set
ClosedPublic

Authored by arsenm on Mar 26 2020, 9:18 AM.

Details

Summary

Apparently HIPToolChain does not subclass from AMDGPUToolChain, so
this was not applying the new denormal attributes. I'm not sure why
this doesn't subclass. Just copy the implementation for now.

Diff Detail

Event Timeline

arsenm created this revision.Mar 26 2020, 9:18 AM

Are there any other clang options affecting flushing denormals? If so, are they working properly after this change? Do we need to have tests for them? Thanks.

Are there any other clang options affecting flushing denormals? If so, are they working properly after this change? Do we need to have tests for them? Thanks.

I already ensured these are correct for OpenCL, so those already have tests. I didn't realize the HIP toolchain was totally separate, so this fixes it.

yaxunl accepted this revision.Mar 31 2020, 12:51 PM

LGTM. Thanks!

This revision is now accepted and ready to land.Mar 31 2020, 12:51 PM