Skip to content

Commit 8bb678d

Browse files
committed
Add TODO to remove provider, remove paren
1 parent 7cb51d9 commit 8bb678d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/include/llvm/CodeGen/RegAllocEvictionAdvisor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ class RegAllocEvictionAdvisorAnalysisLegacy : public ImmutablePass {
199199
/// This keeps the state for logging, and sets up and holds the provider.
200200
/// The legacy pass itself used to keep the logging state and provider,
201201
/// so this extraction helps the NPM analysis to reuse the logic.
202+
/// TODO: Coalesce this with the NPM analysis when legacy PM is removed.
202203
class RegAllocEvictionAdvisorProvider {
203204
public:
204205
enum class AdvisorMode : int { Default, Release, Development };

llvm/lib/CodeGen/MLRegAllocEvictAdvisor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ class ReleaseModeEvictionAdvisorProvider final
403403
InteractiveChannelBaseName + ".out",
404404
InteractiveChannelBaseName + ".in");
405405
}
406-
assert((MBFI && Loops) &&
406+
assert(MBFI && Loops &&
407407
"Invalid provider state: must have analysis available");
408408
return std::make_unique<MLEvictAdvisor>(MF, RA, Runner.get(), *MBFI,
409409
*Loops);

0 commit comments

Comments
 (0)