aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorRamkumar Ramachandra <Ramkumar.Ramachandra@imgtec.com>2023-09-26 19:40:13 +0100
committerGitHub <noreply@github.com>2023-09-26 19:40:13 +0100
commitac466c75258888a212e52a4616e287dc4ec6a68b (patch)
tree7c8c2907e3a4a9a8c424a611214d77707066857a /llvm/utils/UpdateTestChecks/common.py
parent9eebfa80f576eba565fc1d194f08fc31520433e2 (diff)
downloadllvm-ac466c75258888a212e52a4616e287dc4ec6a68b.zip
llvm-ac466c75258888a212e52a4616e287dc4ec6a68b.tar.gz
llvm-ac466c75258888a212e52a4616e287dc4ec6a68b.tar.bz2
UpdateTestChecks: squelch warning on SCEV output (#67443)
update_analyze_test_checks.py currently outputs a warning when updating a script with the run line: $ opt -passes='print<scalar-evolution>' saying that the script doesn't support its output, when it indeed does, as evidenced by several tests in test/Analysis/ScalarEvolution generated by this script. There is even a test for update_analyze_test_checks that makes sure that SCEV output is supported. Hence, squelch the warning. While at it, rename the update_analyze_test_checks test from basic.ll to a more explicit scev.ll.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 22c0532..c8c8d85 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -767,7 +767,11 @@ class FunctionTestBuilder:
)
if "analysis" in m.groupdict():
analysis = m.group("analysis")
- if analysis.lower() != "cost model analysis":
+ supported_analyses = {
+ "cost model analysis",
+ "scalar evolution analysis",
+ }
+ if analysis.lower() not in supported_analyses:
warn("Unsupported analysis mode: %r!" % (analysis,))
if func.startswith("stress"):
# We only use the last line of the function body for stress tests.