Use the algorithm from AMDGPUCodeGenPrepare::expandDivRem32.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D83383  
[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 Timelinefoad added a parent revision: D83381: [AMDGPU] Fix and simplify AMDGPUCodeGenPrepare::expandDivRem32.Jul 8 2020, 4:29 AM This revision is now accepted and ready to land.Jul 8 2020, 6:40 AM Closed by commit rGa8816ebee01c: [AMDGPU] Fix and simplify AMDGPULegalizerInfo::legalizeUDIV_UREM32Impl (authored by foad).  ·  Explain WhyJul 8 2020, 11:15 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 276496 llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
 llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sdiv.mir
 llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-srem.mir
 llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-udiv.mir
 llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-urem.mir
 llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i32.ll
 llvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i64.ll
 llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i32.ll
 llvm/test/CodeGen/AMDGPU/GlobalISel/srem.i64.ll
 llvm/test/CodeGen/AMDGPU/GlobalISel/udiv.i32.ll
 llvm/test/CodeGen/AMDGPU/GlobalISel/udiv.i64.ll
 llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i32.ll
 llvm/test/CodeGen/AMDGPU/GlobalISel/urem.i64.ll
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||