summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2016-09-01 13:45:47 +0000
committerRenato Golin <renato.golin@linaro.org>2016-09-01 13:45:47 +0000
commit0f298a2655d01f531bd4bc9d082aeba7615091f9 (patch)
treedaee185dd4734816a96882ffbba87ef20fe07b71 /compiler-rt
parent88cad7e5cf465fdb995424058e0e111a65493f6e (diff)
downloadbcm5719-llvm-0f298a2655d01f531bd4bc9d082aeba7615091f9.tar.gz
bcm5719-llvm-0f298a2655d01f531bd4bc9d082aeba7615091f9.zip
Fix profile test assuming dumb compiler
Commit r280364 has introduced some call-graph optmisations making a profiler test "fail" due to not expecting the compiler to be "smart", and fold constants across functions. This commit works around the issue, leaving the origial semantics intact. llvm-svn: 280365
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/profile/Linux/instrprof-cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/profile/Linux/instrprof-cs.c b/compiler-rt/test/profile/Linux/instrprof-cs.c
index 3be4359d9bf..fdf29cb355e 100644
--- a/compiler-rt/test/profile/Linux/instrprof-cs.c
+++ b/compiler-rt/test/profile/Linux/instrprof-cs.c
@@ -11,7 +11,7 @@
// Check context insenstive profile
// RUN: %clang_profuse=%t.cis.profdata -O2 -emit-llvm -S %s -o - | FileCheck %s --check-prefix=CIS
int g1 = 1;
-int g2 = 2;
+int volatile g2 = 2;
static void toggle(int t) {
if (t & 1)
g1 *= t;
OpenPOWER on IntegriCloud