This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Lower constant-32-bit zextload/sextload consistently
ClosedPublic

Authored by arsenm on May 18 2021, 3:53 PM.

Details

Summary

We were accidentally leaning on code in lowerLoad which expands
extending loads which should be removed.

Diff Detail

Unit TestsFailed

Event Timeline

arsenm created this revision.May 18 2021, 3:53 PM
arsenm requested review of this revision.May 18 2021, 3:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2021, 3:53 PM
Herald added a subscriber: wdng. · View Herald Transcript
foad accepted this revision.May 19 2021, 3:15 AM

Looks reasonable.

llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
2416

Couldn't this be an assert?

This revision is now accepted and ready to land.May 19 2021, 3:15 AM
arsenm added inline comments.May 27 2021, 6:24 AM
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
2416

No, sextload and zextload should theoretically be handled here too