Use the isCandidateForCallSiteEntry().
This should mostly be an NFC, but there are some parts ensuring the moveCallSiteInfo and copyCallSiteInfo operate with call site entry candidates (both Src and Dest should be the call site entry candidates).
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM, pending resolution of https://reviews.llvm.org/D74121 vs. https://reviews.llvm.org/D74159. (I believe this can easily be rebased on top of either patch.)
Test coverage for this is dependent on https://reviews.llvm.org/D73534, AIUI, but this looks safe to land first.
llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | ||
---|---|---|
1445 | I think it is not, since we do not consider all posible calls as ‘call site entry candidates’. The call site info is used for debug entry values feature only (for now). |
llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | ||
---|---|---|
1445 | Hmm...but if these are the only instructions we handle here, we can avoid these checks actually... And it is safe, since we have the assertions within ‘*callSiteInfo’ ensuring we call it only in the case of call site entry candidates. |
Isn't this check redundant, give we know we're replacing a TCRETURNxxx ?