This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Don't assert on f16 inv2pi immediates pre-gfx8
ClosedPublic

Authored by arsenm on Jul 22 2020, 9:35 AM.

Details

Summary

v_cvt_f32_f16 can still accept this value as a literal constant. This
showed up in GlobalISel since it doesn't have constant folding for
G_FPEXT.

Diff Detail

Event Timeline

arsenm created this revision.Jul 22 2020, 9:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2020, 9:35 AM
dp accepted this revision.Jul 22 2020, 10:36 AM

LGTM

This revision is now accepted and ready to land.Jul 22 2020, 10:36 AM