@@ -2090,7 +2090,7 @@ def add_checks(
20902090 global_tbaa_records_for_prefixes = {},
20912091 preserve_names = False ,
20922092 original_check_lines : Mapping [str , List [str ]] = {},
2093- check_comments = True ,
2093+ check_inst_comments = True ,
20942094):
20952095 # prefix_exclusions are prefixes we cannot use to print the function because it doesn't exist in run lines that use these prefixes as well.
20962096 prefix_exclusions = set ()
@@ -2288,8 +2288,8 @@ def add_checks(
22882288 global_tbaa_records ,
22892289 preserve_names ,
22902290 original_check_lines = original_check_lines .get (checkprefix ),
2291- # IR output might require comments checks, e.g., predicate info, memssa
2292- ignore_all_comments = not check_comments ,
2291+ # IR output might require comments checks, e.g., print- predicate- info, print< memssa>
2292+ ignore_all_comments = not check_inst_comments ,
22932293 )
22942294
22952295 # This could be selectively enabled with an optional invocation argument.
@@ -2309,7 +2309,7 @@ def add_checks(
23092309 if func_line .strip () == "" :
23102310 is_blank_line = True
23112311 continue
2312- if not check_comments :
2312+ if not check_inst_comments :
23132313 # Do not waste time checking IR comments unless necessary.
23142314 func_line = SCRUB_IR_COMMENT_RE .sub (r"" , func_line )
23152315
@@ -2353,7 +2353,7 @@ def add_ir_checks(
23532353 global_vars_seen_dict ,
23542354 global_tbaa_records_for_prefixes ,
23552355 is_filtered ,
2356- check_comments = False ,
2356+ check_inst_comments = False ,
23572357 original_check_lines = {},
23582358):
23592359 assert ginfo .is_ir ()
@@ -2380,7 +2380,7 @@ def add_ir_checks(
23802380 global_tbaa_records_for_prefixes ,
23812381 preserve_names ,
23822382 original_check_lines = original_check_lines ,
2383- check_comments = check_comments ,
2383+ check_inst_comments = check_inst_comments ,
23842384 )
23852385
23862386
0 commit comments