| Issue |
242512
|
| Summary |
SILowerSGPRSpills leaves stale register-unit ranges
|
| Labels |
backend:AMDGPU,
llvm:regalloc
|
| Assignees |
|
| Reporter |
arsenm
|
```
; RUN: llc -O2 -verify-machineinstrs -precompute-phys-liveness -filetype=null %s
target triple = "amdgpu9.42-amd-amdhsa"
declare void @ext()
define void @f() {
call void @ext()
ret void
}
```
```
*** Bad machine code: No live segment at use ***
- function: f
- basic block: %bb.0 (0x74eac63c00) [0B;400B)
- instruction: 8B $vgpr63 = SI_SPILL_S32_TO_VGPR $sgpr30, 0, $vgpr63(tied-def 0), implicit-def $sgpr30_sgpr31, implicit $sgpr30_sgpr31
- operand 3: $vgpr63(tied-def 0)
- liverange: EMPTY
- regunit: VGPR63_LO16
- at: 8B
```
Probably just needs a ` LIS->removeAllRegUnitsForPhysReg(LaneVGPR)`
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs