[llvm] [AMDGPU] Be more careful about using expandDivRem24 (PR #201186)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 4 08:13:45 PDT 2026


LU-JOHN wrote:

> Would it be possible to add a more fine-grained `opt` test for `AMDGPUCodeGenPrepare` to capture the cases where it can be applied or not?
> 
> It could also help adding an executing test for this edge case. This might be added in llvm-test-suite (see [llvm/llvm-test-suite#400](https://github.com/llvm/llvm-test-suite/pull/400))

Fine-grained `opt` tests added in amdgpu-codegenprepare-idiv.ll.

Test for udivrem24 added in https://github.com/llvm/llvm-test-suite/pull/413.

https://github.com/llvm/llvm-project/pull/201186


More information about the llvm-commits mailing list