This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Check for NaN when folding output modifiers
AbandonedPublic

Authored by bcahoon on Apr 1 2021, 3:00 PM.

Details

Reviewers
arsenm
Summary

Hardware ignores output modifiers if the IEEE mode is set. If the
no NaN flag is set on an instruction, then the output modifier
folding optimization can assume that the IEEE mode is not set.

Diff Detail

Event Timeline

bcahoon created this revision.Apr 1 2021, 3:00 PM
bcahoon requested review of this revision.Apr 1 2021, 3:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2021, 3:00 PM
arsenm requested changes to this revision.Apr 1 2021, 3:19 PM

Oh whoops, I forgot the hardware totally ignores the modifiers with IEEE mode on (not that this behavior makes any sense). We can't actually do this

This revision now requires changes to proceed.Apr 1 2021, 3:19 PM
bcahoon abandoned this revision.Apr 2 2021, 7:33 AM