This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Fix SALU mapping for v2s16 min/max
ClosedPublic

Authored by arsenm on Feb 19 2020, 1:01 PM.

Details

Summary

The legalizer helper functions are unusably awkward to perform the 3-5
part legalization. This needs to be widened, scalarized, lowered, and
we should avoid creating vector extends and truncates. Manually do all
of this and expand.

Diff Detail

Event Timeline

arsenm created this revision.Feb 19 2020, 1:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 19 2020, 1:01 PM
arsenm updated this revision to Diff 245497.Feb 19 2020, 1:05 PM

Failed to rebase comment fixes

foad accepted this revision.Feb 21 2020, 6:56 AM

Looks OK to me.

llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
1563

Just curious: why s32 instead of s1 for comparison results?

This revision is now accepted and ready to land.Feb 21 2020, 6:56 AM
arsenm marked an inline comment as done.Feb 21 2020, 7:40 AM
arsenm added inline comments.
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
1563