[compiler-rt] r324571 - Update test counter_promo_nest.c to meet llvm change

Serguei Katkov via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 23:15:50 PST 2018


Author: skatkov
Date: Wed Feb  7 23:15:49 2018
New Revision: 324571

URL: http://llvm.org/viewvc/llvm-project?rev=324571&view=rev
Log:
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.

Modified:
    compiler-rt/trunk/test/profile/Linux/counter_promo_nest.c

Modified: compiler-rt/trunk/test/profile/Linux/counter_promo_nest.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/Linux/counter_promo_nest.c?rev=324571&r1=324570&r2=324571&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/Linux/counter_promo_nest.c (original)
+++ compiler-rt/trunk/test/profile/Linux/counter_promo_nest.c Wed Feb  7 23:15:49 2018
@@ -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{{.*}}




More information about the llvm-commits mailing list