From d535c4d9d244171f94d1d83cdb2292b39577a5b0 Mon Sep 17 00:00:00 2001 From: Serguei Katkov Date: Thu, 8 Feb 2018 07:15:49 +0000 Subject: [PATCH] Update test counter_promo_nest.c to meet llvm change The test expects to see the pattern "load add store" twice in a row. However the test contains actually several instances of this pattern. Currently the first pattern appears in the output twice. But after LLVM change https://reviews.llvm.org/D42691 some addtional modification is done and one of another pattern has been hoisted in function entry block. As a result we have another order of meeting this pattern. The test is updated to meet this change. llvm-svn: 324571 --- compiler-rt/test/profile/Linux/counter_promo_nest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler-rt/test/profile/Linux/counter_promo_nest.c b/compiler-rt/test/profile/Linux/counter_promo_nest.c index 0792f0c76abb..ebd52dda7f48 100644 --- a/compiler-rt/test/profile/Linux/counter_promo_nest.c +++ b/compiler-rt/test/profile/Linux/counter_promo_nest.c @@ -25,6 +25,9 @@ int main() // PROMO: load{{.*}}@__profc_main{{.*}} // PROMO-NEXT: add // PROMO-NEXT: store{{.*}}@__profc_main{{.*}} +// PROMO: load{{.*}}@__profc_main{{.*}} +// PROMO-NEXT: add +// PROMO-NEXT: store{{.*}}@__profc_main{{.*}} // PROMO-NEXT: load{{.*}}@__profc_main{{.*}} // PROMO-NEXT: add // PROMO-NEXT: store{{.*}}@__profc_main{{.*}}