If we write an immediate to a VGPR and then copy the VGPR to an
SGPR, we can replace the copy with a S_MOV_B32 sgpr, imm, rather than
moving the copy to the SALU.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 1723 Build 1723: arc lint + arc unit
Event Timeline
lib/Target/AMDGPU/SIFixSGPRCopies.cpp | ||
---|---|---|
366–367 | MI is a copy here, so there are no implicit exec uses. |
I think this should be unreachable since we never emit this. I'm not sure the modifiers even work, so I don't think there's any reason to ever use this