This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Teach getNegatedExpression about rcp
ClosedPublic

Authored by arsenm on Feb 13 2023, 12:32 PM.

Details

Reviewers
foad
rampitec
Pierre-vh
sebastian-ne
Group Reviewers
Restricted Project

Diff Detail

Event Timeline

arsenm created this revision.Feb 13 2023, 12:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2023, 12:32 PM
arsenm requested review of this revision.Feb 13 2023, 12:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2023, 12:32 PM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec accepted this revision.Feb 13 2023, 12:57 PM
This revision is now accepted and ready to land.Feb 13 2023, 12:57 PM
foad added inline comments.Feb 15 2023, 1:38 AM
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
809

Depth + 1?

llvm/test/CodeGen/AMDGPU/fneg-combines.new.ll
2033

This codegen isn't actually any better, is it?

arsenm marked an inline comment as done.Feb 15 2023, 3:29 AM
arsenm added inline comments.
llvm/test/CodeGen/AMDGPU/fneg-combines.new.ll
2033

No, this particular test is just cosmetic. I'm mostly trying to avoid regressions from turning 0 into -0 in a future patch