[llvm] [AArch64] Add flag to conditionally write FPMR (PR #203911)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 19 08:55:50 PDT 2026
================
@@ -271,7 +271,7 @@ void llvm::addLiveIns(MachineBasicBlock &MBB, const LivePhysRegs &LiveRegs) {
const MachineRegisterInfo &MRI = MF.getRegInfo();
const TargetRegisterInfo &TRI = *MRI.getTargetRegisterInfo();
for (MCPhysReg Reg : LiveRegs) {
- if (MRI.isReserved(Reg))
+ if (TRI.getReservedRegs(MF).test(Reg))
----------------
CarolineConcatto wrote:
I could not create an .ll test to make it crash without this.
I also asked Marian why this was added before. The reason was because the compile was crashing.
I removed this change, because the problem with live-in register does not exist.
https://github.com/llvm/llvm-project/pull/203911
More information about the llvm-commits
mailing list