llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[AMDGPU] identical-subrange-spill-infloop.ll no longer catches its infinite loop

Open petar-jovanovic opened this issue 1 month ago • 3 comments

The test guards against the InlineSpiller infinite loop introduced by d8127b2ba8a8 and reverted in e816c89c8406. With SlotIndexes compaction on by default for AMDGPU (#235806), re-applying d8127b2ba8a8 no longer makes the test hang: it compiles in 0.1 s with unchanged output. No stress option restores the hang.

The bug is still caught: with the change applied, infloop-subrange-spill-inspect-subrange.mir and ra-inserted-scalar-instructions.mir hang.

Reproduce: apply d8127b2ba8a8 to InlineSpiller.cpp, rebuild, then timeout 60 llc -mtriple=amdgpu9.00 -o /dev/null < identical-subrange-spill-infloop.ll.

petar-jovanovic avatar Oct 29 '26 14:10 petar-jovanovic

Recommendation: Remove the test, the .mir test still covers the same bug.

petar-jovanovic avatar Oct 29 '26 14:10 petar-jovanovic

@arsenm do you agree with the suggestion to remove the test?

petar-jovanovic avatar Oct 29 '26 14:10 petar-jovanovic

@llvm/issue-subscribers-backend-amdgpu

Author: Petar Jovanovic (petar-jovanovic)

The test guards against the InlineSpiller infinite loop introduced by `d8127b2ba8a8` and reverted in `e816c89c8406`. With SlotIndexes compaction on by default for AMDGPU (#235806), re-applying `d8127b2ba8a8` no longer makes the test hang: it compiles in 0.1 s with unchanged output. No stress option restores the hang.

The bug is still caught: with the change applied, infloop-subrange-spill-inspect-subrange.mir and ra-inserted-scalar-instructions.mir hang.

Reproduce: apply d8127b2ba8a8 to InlineSpiller.cpp, rebuild, then timeout 60 llc -mtriple=amdgpu9.00 -o /dev/null &lt; identical-subrange-spill-infloop.ll.