[llvm] Fix error message when regalloc eviction advisor analysis could not be created (PR #72165)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 13 14:17:08 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlgo
Author: AdityaK (hiraditya)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/72165.diff
2 Files Affected:
- (modified) llvm/lib/CodeGen/RegAllocEvictionAdvisor.cpp (+1-1)
- (modified) llvm/test/CodeGen/MLRegAlloc/default-eviction-advisor.ll (+2-2)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/72165
More information about the llvm-commits
mailing list