This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fold out sign bit ops on frexp_exp
ClosedPublic

Authored by arsenm on Jul 5 2023, 11:44 AM.

Details

Reviewers
foad
Pierre-vh
rampitec
Group Reviewers
Restricted Project
Summary

The sign bit has no impact on the exponent, so strip these away. Saves
on the source modifier encoding cost. I left the GlobalISel handling
until there's a resolution to issue #62628.

We should do this in instcombine too, but legalization should be
introducing more frexps than it currently is where this would occur.

Diff Detail

Event Timeline

arsenm created this revision.Jul 5 2023, 11:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 5 2023, 11:44 AM
arsenm requested review of this revision.Jul 5 2023, 11:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 5 2023, 11:44 AM
Herald added a subscriber: wdng. · View Herald Transcript
This revision is now accepted and ready to land.Jul 5 2023, 12:50 PM