- Don't treat the use of a scalar register as vreg_1 an VGPR usage. Otherwise, that promotes that scalar register into vector one, which breaks the assumption that scalar register holds the lane mask.
- The issue is triggered in a complicated case, where if the uses of that (lane mask) scalar register is legalized firstly before its definition, e.g., due to the mismatch block placement and its topological order or loop. In that cases, the legalization of PHI introduces the use of that scalar register as vreg_1.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 32532 Build 32531: arc lint + arc unit
Event Timeline
llvm/test/CodeGen/AMDGPU/fix-sgpr-copies.mir | ||
---|---|---|
23 | Test name should be more specific. Also could use a comment about what it's testing |
Test name should be more specific. Also could use a comment about what it's testing