[PATCH] D94153: [AMDGPU][Inliner] Remove amdgpu-inline and add new TTI inline hooks
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 6 08:43:24 PST 2021
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp:1143-1147
+ if (isa<ReturnInst>(*std::next(I->getIterator()))) {
+ LLVM_DEBUG(dbgs() << " Wrapper only call detected: "
+ << Callee->getName() << '\n');
+ return true;
+ }
----------------
I'm not convinced we ever really needed this. I believe the standard inline heuristic will always do this anyway
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp:1152
+
+bool GCNTTIImpl::mustNotInline(const CallBase *CB) const {
+ const Function *Caller = CB->getCaller();
----------------
I'm not sure I like having a target hook for a hack like this
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94153/new/
https://reviews.llvm.org/D94153
More information about the llvm-commits
mailing list