diff options
author | Renato Golin <renato.golin@linaro.org> | 2016-09-01 13:45:47 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2016-09-01 13:45:47 +0000 |
commit | 9ecf34a557e193a1809d8083f3889a68384575d6 (patch) | |
tree | c4a7565638ebde7dbf27b73c203352b72886cc67 /test/profile | |
parent | b64e12202e9d65982a1a71f1fa18e552d811dbf4 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@280365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile')
-rw-r--r-- | test/profile/Linux/instrprof-cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/profile/Linux/instrprof-cs.c b/test/profile/Linux/instrprof-cs.c index 3be4359d9..fdf29cb35 100644 --- a/test/profile/Linux/instrprof-cs.c +++ b/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; |