Skip to content

Commit 2103b92

Browse files
committed
Add TODO to remove provider, remove paren
1 parent e1d8eda commit 2103b92

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

llvm/include/llvm/CodeGen/RegAllocEvictionAdvisor.h

+1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ class ReleaseModeEvictionAdvisorProvider final
397397
InteractiveChannelBaseName + ".out",
398398
InteractiveChannelBaseName + ".in");
399399
}
400-
assert((MBFI && Loops) &&
400+
assert(MBFI && Loops &&
401401
"Invalid provider state: must have analysis available");
402402
return std::make_unique<MLEvictAdvisor>(MF, RA, Runner.get(), *MBFI,
403403
*Loops);

0 commit comments

Comments
 (0)