This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix creating illegal f16 fp_class
ClosedPublic

Authored by arsenm on Nov 28 2022, 5:58 PM.

Details

Reviewers
JanekvO
Pierre-vh
foad
rampitec
Group Reviewers
Restricted Project
Summary

We were missing legality checks. The device library build was broken
for targets without f16 support. Technically the first pattern isn't
tested by this patch; it only triggers with the isBeforeLegalize check
in performAndCombine removed. I'm not sure how to trick this into
appearing post-legalization.

Diff Detail

Event Timeline

arsenm created this revision.Nov 28 2022, 5:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 5:58 PM
arsenm requested review of this revision.Nov 28 2022, 5:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 28 2022, 5:58 PM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec accepted this revision.Nov 29 2022, 2:30 PM
This revision is now accepted and ready to land.Nov 29 2022, 2:30 PM