This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Remove custom node for RSQ_LEGACY
ClosedPublic

Authored by arsenm on Apr 17 2020, 8:23 AM.

Details

Summary

Directly select from the intrinsic. This wasn't getting much value
from the custom node.

Diff Detail

Event Timeline

arsenm created this revision.Apr 17 2020, 8:23 AM
rampitec added inline comments.Apr 17 2020, 11:56 AM
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
4714

Isn't sNaN a NaN?

arsenm marked an inline comment as done.Apr 17 2020, 12:29 PM
arsenm added inline comments.
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
4714

The SNaN parameter to isKnownNeverNaNForTargetNode makes this isKnownNeverSignallingNaN. Since these are canonicalizing operations, they quiet and therefore never return an snan

This revision is now accepted and ready to land.Apr 17 2020, 1:18 PM