This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fold llvm.amdgcn.sqrt(undef)
ClosedPublic

Authored by arsenm on Nov 11 2022, 7:22 AM.

Details

Reviewers
rampitec
Group Reviewers
Restricted Project

Diff Detail

Event Timeline

arsenm created this revision.Nov 11 2022, 7:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 11 2022, 7:22 AM
arsenm requested review of this revision.Nov 11 2022, 7:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 11 2022, 7:22 AM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm updated this revision to Diff 474761.Nov 11 2022, 7:24 AM

Attach correct patch

foad added inline comments.Nov 11 2022, 8:17 AM
llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
355

Just merge with the amdgcn_rsq case?

arsenm updated this revision to Diff 474783.Nov 11 2022, 8:58 AM

Merge. I was hoping to get some real constant folding here but that probably won't happen anytime soon

rampitec accepted this revision.Nov 11 2022, 11:47 AM
This revision is now accepted and ready to land.Nov 11 2022, 11:47 AM