aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2023-12-23 14:20:43 +0100
committerNicolai Hähnle <nicolai.haehnle@amd.com>2024-03-08 03:58:11 +0100
commit5747f9d3e9f3a49c27984b9341e123b9ca82e741 (patch)
tree4bd617db7c5652d8885e7c3c001d07f860ac2006 /llvm/utils/UpdateTestChecks/common.py
parentfc1e5f978561d6357083f9b5bc981e52d93374b3 (diff)
downloadllvm-5747f9d3e9f3a49c27984b9341e123b9ca82e741.zip
llvm-5747f9d3e9f3a49c27984b9341e123b9ca82e741.tar.gz
llvm-5747f9d3e9f3a49c27984b9341e123b9ca82e741.tar.bz2
update_test_checks: simplify get_ir_regex
The match argument isn't used.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 72d21cf..a3365fe 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -947,7 +947,7 @@ class NamelessValue:
return re.search(self.ir_prefix, match[0])[0], self.check_prefix
# Return the IR regexp we use for this kind or IR value, e.g., [\w.-]+? for locals
- def get_ir_regex_from_ir_value_re_match(self, match):
+ def get_ir_regex(self):
# for backwards compatibility we check locals with '.*'
if self.is_local_def_ir_value():
return ".*"
@@ -988,7 +988,7 @@ class NamelessValue:
regex = "" # always capture a number in the default format
capture_start = "[[#"
else:
- regex = self.get_ir_regex_from_ir_value_re_match(match)
+ regex = self.get_ir_regex()
capture_start = "[["
if self.is_local_def_ir_value():
return capture_start + varname + ":" + prefix + regex + "]]"