search for: calleepreserved

Displaying 3 results from an estimated 3 matches for "calleepreserved".

2016 Aug 05
2
A thought to improve IPRA
...ibleForTailCallOptimization() has this part: // The callee has to preserve all registers the caller needs to preserve. const X86RegisterInfo *TRI = Subtarget.getRegisterInfo(); const uint32_t *CallerPreserved = TRI->getCallPreservedMask(MF, CallerCC); if (!CCMatch) { const uint32_t *CalleePreserved = TRI->getCallPreservedMask(MF, CalleeCC); if (!TRI->regmaskSubsetEqual(CallerPreserved, CalleePreserved)) return false; } which usually checks that this is fine. Maybe that code looks at the regmask of the calling convention rather than the new regmask computed by IPRA? - Matth...
2016 Aug 16
2
A thought to improve IPRA
...callee has to preserve all registers the caller needs to >> preserve. >> const X86RegisterInfo *TRI = Subtarget.getRegisterInfo(); >> const uint32_t *CallerPreserved = TRI->getCallPreservedMask(MF, >> CallerCC); >> if (!CCMatch) { >> const uint32_t *CalleePreserved = TRI->getCallPreservedMask(MF, >> CalleeCC); >> if (!TRI->regmaskSubsetEqual(CallerPreserved, CalleePreserved)) >> return false; >> } >> >> Thanks MatzeB for pointing this out. > >> which usually checks that this is fine. Maybe that co...
2016 Jul 29
2
A thought to improve IPRA
----- Original Message ----- > From: "vivek pandya" <vivekvpandya at gmail.com> > To: "Hal Finkel" <hfinkel at anl.gov> > Cc: "llvm-dev" <llvm-dev at lists.llvm.org>, "Quentin Colombet" > <qcolombet at apple.com>, "Mehdi Amini" <mehdi.amini at apple.com> > Sent: Friday, July 29, 2016 5:02:44 AM >