[clang] c52053b - [clang] Fix buildbot failure in delayed-template-with-pragma.cpp
Mike Rice via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 29 11:54:14 PST 2022
Author: Mike Rice
Date: 2022-11-29T11:53:37-08:00
New Revision: c52053bd9961cc1854e86958ffb0f89e2cfe4e5f
URL: https://github.com/llvm/llvm-project/commit/c52053bd9961cc1854e86958ffb0f89e2cfe4e5f
DIFF: https://github.com/llvm/llvm-project/commit/c52053bd9961cc1854e86958ffb0f89e2cfe4e5f.diff
LOG: [clang] Fix buildbot failure in delayed-template-with-pragma.cpp
Use captured values to match loop metadata.
Added:
Modified:
clang/test/PCH/delayed-template-with-pragma.cpp
Removed:
################################################################################
diff --git a/clang/test/PCH/delayed-template-with-pragma.cpp b/clang/test/PCH/delayed-template-with-pragma.cpp
index abc959b20707..e54388456245 100644
--- a/clang/test/PCH/delayed-template-with-pragma.cpp
+++ b/clang/test/PCH/delayed-template-with-pragma.cpp
@@ -20,14 +20,14 @@ void a(T t) {
}
}
#else
-// CHECK: !llvm.loop !3
-// CHECK: !llvm.loop !7
-// CHECK: !3 = distinct !{!3, !4, !5}
-// CHECK: !4 = !{!"llvm.loop.mustprogress"}
-// CHECK: !5 = !{!"llvm.loop.unroll.count", i32 4}
-// CHECK: !7 = distinct !{!7, !8, !9}
-// CHECK: !8 = !{!"llvm.loop.parallel_accesses", !6}
-// CHECK: !9 = !{!"llvm.loop.vectorize.enable", i1 true}
+// CHECK: !llvm.loop [[LOOP1:!.*]]
+// CHECK: !llvm.loop [[LOOP2:!.*]]
+// CHECK: [[LOOP1]] = distinct !{[[LOOP1]], [[LOOP1A:!.*]], [[LOOP1B:!.*]]}
+// CHECK: [[LOOP1A]] = !{!"llvm.loop.mustprogress"}
+// CHECK: [[LOOP1B]] = !{!"llvm.loop.unroll.count", i32 4}
+// CHECK: [[LOOP2]] = distinct !{[[LOOP2]], [[LOOP2A:!.*]], [[LOOP2B:!.*]]}
+// CHECK: [[LOOP2A]] = !{!"llvm.loop.parallel_accesses", [[LOOP2C:!.*]]}
+// CHECK: [[LOOP2B]] = !{!"llvm.loop.vectorize.enable", i1 true}
// expected-warning at 17 {{unused variable 'zz'}}
void foo()
{
More information about the cfe-commits
mailing list