From 41778e3dc5f4c697b5074ef5a15031210cb9aaac Mon Sep 17 00:00:00 2001
From: Jamie Schmeiser
Date: Mon, 6 Jun 2022 15:51:48 -0400
Subject: [PATCH] [NFC] Change lit test for print-changed=dot-cfg to use
regular expression
Summary:
Issue 55761:
Change the lit test for print-changed=dot-cfg to have a regular expression
for the template arguments portion of the name for a pass manager pass.
This part of the name can change because it is based on the name provided
by the compiler, which is implementation-dependent. This mimics the
other change printer tests.
Author: Jamie Schmeiser
Reviewed By: mgorny (Michal Gorny)
Differential Revision: https://reviews.llvm.org/D126876
---
.../DotCfg/print-changed-dot-cfg.ll | 32 +++++++++----------
1 file changed, 16 insertions(+), 16 deletions(-)
diff --git a/llvm/test/Other/ChangePrinters/DotCfg/print-changed-dot-cfg.ll b/llvm/test/Other/ChangePrinters/DotCfg/print-changed-dot-cfg.ll
index cbd9d3013d97c..f607a0356a859 100644
--- a/llvm/test/Other/ChangePrinters/DotCfg/print-changed-dot-cfg.ll
+++ b/llvm/test/Other/ChangePrinters/DotCfg/print-changed-dot-cfg.ll
@@ -131,17 +131,17 @@ entry:
; CHECK-DOT-CFG-SIMPLE-NEXT:
; CHECK-DOT-CFG-SIMPLE-NEXT: 1. Pass InstSimplifyPass on g
; CHECK-DOT-CFG-SIMPLE-NEXT:
-; CHECK-DOT-CFG-SIMPLE-NEXT: 2. PassManager<llvm::Function> on g ignored
+; CHECK-DOT-CFG-SIMPLE-NEXT: 2. PassManager{{.*}} on g ignored
; CHECK-DOT-CFG-SIMPLE-NEXT: 3. Pass InstSimplifyPass on f
; CHECK-DOT-CFG-SIMPLE-NEXT:
-; CHECK-DOT-CFG-SIMPLE-NEXT: 4. PassManager<llvm::Function> on f ignored
+; CHECK-DOT-CFG-SIMPLE-NEXT: 4. PassManager{{.*}} on f ignored
; CHECK-DOT-CFG-SIMPLE-NEXT: 5. ModuleToFunctionPassAdaptor on [module] ignored
; CHECK-DOT-CFG-SIMPLE-NEXT: 6. Pass PrintModulePass on [module] omitted because no change
; CHECK-DOT-CFG-SIMPLE-NEXT: