This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Select f64 fmul by negative power of 2 to ldexp
ClosedPublic

Authored by arsenm on Aug 17 2023, 4:45 AM.

Details

Reviewers
foad
rampitec
Group Reviewers
Restricted Project
Summary

Select fmul x, -K -> ldexp(-x, log2(fabsK))
Select fmul fabs(x), -K -> ldexp(-|x|, log2(fabsK))

Diff Detail

Event Timeline

arsenm created this revision.Aug 17 2023, 4:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2023, 4:45 AM
arsenm requested review of this revision.Aug 17 2023, 4:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2023, 4:45 AM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec accepted this revision.Aug 23 2023, 5:16 PM

LGTM. JFYI, Jay is on vacation.

This revision is now accepted and ready to land.Aug 23 2023, 5:16 PM