Fix the verifier so that overlapping SGPR operands are counted
independently. We cannot assume that overlapping SGPR accesses
only count as a single constant bus use.
The exception is implicit uses which do not add to constant bus
usage (only) when overlapping.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I am not exactly sure kind of test is best for this?
I have added a XFAIL test which violates the modified verifier, but this is "expensive" in terms of time to failure.
| llvm/test/CodeGen/AMDGPU/verify-constant-bus-violations.mir | ||
|---|---|---|
| 17 | This error should also be hit for gfx9 | |
| llvm/test/CodeGen/AMDGPU/verify-constant-bus-violations.mir | ||
|---|---|---|
| 17 | It does, but compiler dies on first violation. | |
| llvm/test/CodeGen/AMDGPU/verify-constant-bus-violations.mir | ||
|---|---|---|
| 17 | I forgot about that problem. It's probably not worth splitting it | |
This error should also be hit for gfx9