[PATCH] D115707: [NFC][regalloc] Introduce the RegAllocEvictionAdvisorAnalysis
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 15 18:54:27 PST 2021
mtrofin marked an inline comment as done.
mtrofin added inline comments.
================
Comment at: llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp:89-90
+ return Ret;
+ dbgs() << "Requested regalloc eviction advisor analysis could be created. "
+ "Using default";
+ return new DefaultEvictionAdvisorAnalysis();
----------------
wenlei wrote:
> LLVM_DEBUG
I think we want to warn back to the user. Maybe we should instead mark somehow the created object (which can only be the Default anyway) and in its doInitialization, where we have a LLVMContext, emit an error? (not sure if there's a precedent)
alternatively: we can have the analysis as a final class and delegate to an implementation which we create in doInitialization. The implementation then can have additional requirements for doInitialization/doFinalization and getAnalysisUsage, if it needs.
wdyt?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115707/new/
https://reviews.llvm.org/D115707
More information about the llvm-commits
mailing list