[llvm] b7669ed - Fix error message when regalloc eviction advisor analysis could not be created (#72165)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 14 11:17:21 PST 2023
Author: AdityaK
Date: 2023-11-14T11:17:17-08:00
New Revision: b7669ed95f32a947f58909314c91053de1cff562
URL: https://github.com/llvm/llvm-project/commit/b7669ed95f32a947f58909314c91053de1cff562
DIFF: https://github.com/llvm/llvm-project/commit/b7669ed95f32a947f58909314c91053de1cff562.diff
LOG: Fix error message when regalloc eviction advisor analysis could not be created (#72165)
Added:
Modified:
llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
llvm/test/CodeGen/MLRegAlloc/default-eviction-advisor.ll
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp b/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
index 81f3d2c8099f18b..47ad9c168b92367 100644
--- a/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
+++ b/llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp
@@ -83,7 +83,7 @@ class DefaultEvictionAdvisorAnalysis final
bool doInitialization(Module &M) override {
if (NotAsRequested)
M.getContext().emitError("Requested regalloc eviction advisor analysis "
- "could be created. Using default");
+ "could not be created. Using default");
return RegAllocEvictionAdvisorAnalysis::doInitialization(M);
}
const bool NotAsRequested;
diff --git a/llvm/test/CodeGen/MLRegAlloc/default-eviction-advisor.ll b/llvm/test/CodeGen/MLRegAlloc/default-eviction-advisor.ll
index 0f4485e2de1d926..337fbb767f36c96 100644
--- a/llvm/test/CodeGen/MLRegAlloc/default-eviction-advisor.ll
+++ b/llvm/test/CodeGen/MLRegAlloc/default-eviction-advisor.ll
@@ -16,5 +16,5 @@ define void @f2(i64 %lhs, i64 %rhs, i64* %addr) {
ret void
}
-; CHECK: Requested regalloc eviction advisor analysis could be created. Using default
-; DEFAULT-NOT: Requested regalloc eviction advisor analysis could be created. Using default
+; CHECK: Requested regalloc eviction advisor analysis could not be created. Using default
+; DEFAULT-NOT: Requested regalloc eviction advisor analysis could not be created. Using default
More information about the llvm-commits
mailing list