This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix and simplify AMDGPULegalizerInfo::legalizeUDIV_UREM32Impl
ClosedPublic

Authored by foad on Jul 8 2020, 4:27 AM.

Details

Summary

Use the algorithm from AMDGPUCodeGenPrepare::expandDivRem32.

Diff Detail

Event Timeline

foad created this revision.Jul 8 2020, 4:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2020, 4:27 AM
arsenm accepted this revision.Jul 8 2020, 6:40 AM
This revision is now accepted and ready to land.Jul 8 2020, 6:40 AM
This revision was automatically updated to reflect the committed changes.