[llvm] [SPARC] Preserve liveins after leaf register remapping (PR #213359)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 2 14:02:04 PDT 2026
================
@@ -462,6 +463,20 @@ bool MachineRegisterInfo::isLiveIn(Register Reg) const {
return false;
}
+void MachineRegisterInfo::replaceLiveInPhysReg(MCRegister FromReg,
+ MCRegister ToReg) {
+ assert(FromReg.isPhysical() && ToReg.isPhysical() && FromReg != ToReg);
+ auto From = llvm::find_if(LiveIns, [FromReg](const auto &LiveIn) {
----------------
arsenm wrote:
no auto on LiveIn
https://github.com/llvm/llvm-project/pull/213359
More information about the llvm-commits
mailing list