[llvm] [AMDGPU] Fix VGPR to SGPR copy for inline asm with SGPR constraint (PR #176330)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 16 13:56:47 PST 2026


================
@@ -1019,6 +1030,8 @@ void SIFixSGPRCopies::analyzeVGPRToSGPRCopy(MachineInstr* MI) {
 // The main function that computes the VGPR to SGPR copy score
 // and determines copy further lowering way: v_readfirstlane_b32 or moveToVALU
 bool SIFixSGPRCopies::needToBeConvertedToVALU(V2SCopyInfo *Info) {
+  if (Info->HasMandatorySGPRUse)
----------------
arsenm wrote:

I'm worried about this breaking the other uses of the register

https://github.com/llvm/llvm-project/pull/176330


More information about the llvm-commits mailing list