================
@@ -1859,7 +1859,20 @@ void SIFrameLowering::determinePrologEpilogSGPRSaves(
// If found any unused scratch SGPR, reserve the register itself for Exec
// copy and there is no need for any spills in that case.
MFI->setSGPRForEXECCopy(UnusedScratchReg);
- MRI.replaceRegWith(ReservedRegForExecCopy, UnusedScratchReg);
+ // Only rewrite EXEC saves and restores. Other uses, such as inline
----------------
yxsamliu wrote:
Simplified this with `readsRegister` and `modifiesRegister`. It only renames
EXEC saves and restores, leaving fixed asm registers alone.
https://github.com/llvm/llvm-project/pull/238539
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits