search for: islrincludedincsi

Displaying 1 result from an estimated 1 matches for "islrincludedincsi".

2015 Jan 11
3
[LLVMdev] [RFC] [PATCH] add tail call optimization to thumb1-only targets
...I = MBB.getLastNonDebugInstr(); + + // First restore callee saved registers. Unlike for normal returns + // this is *not* done in restoreCalleeSavedRegisters. + const std::vector<CalleeSavedInfo> &CSI(MFI->getCalleeSavedInfo()); + + bool IsR4IncludedInCSI = false; + bool IsLRIncludedInCSI = false; + for (unsigned i = CSI.size(); i != 0; --i) { + unsigned Reg = CSI[i-1].getReg(); + if (Reg == ARM::R4) + IsR4IncludedInCSI = true; + if (Reg == ARM::LR) + IsLRIncludedInCSI = true; + } + + MachineFunction &MF = *MBB.getParent(); + const Target...