Skip to content

UpdateTestChecks: squelch warning on SCEV output #67443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Basic test checking that update_analyze_test_checks.py works correctly
# RUN: cp -f %S/Inputs/basic.ll %t.ll && %update_analyze_test_checks %t.ll
# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected
# RUN: cp -f %S/Inputs/scev.ll %t.ll && %update_analyze_test_checks %t.ll
# RUN: diff -u %t.ll %S/Inputs/scev.ll.expected
## Check that running the script again does not change the result:
# RUN: %update_analyze_test_checks %t.ll
# RUN: diff -u %t.ll %S/Inputs/basic.ll.expected
# RUN: diff -u %t.ll %S/Inputs/scev.ll.expected
6 changes: 5 additions & 1 deletion llvm/utils/UpdateTestChecks/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,11 @@ def process_run_line(
)
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.
Expand Down