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
This commit is contained in:
Renato Golin 2016-09-01 13:45:47 +00:00
parent 88cad7e5cf
commit 0f298a2655
1 changed files with 1 additions and 1 deletions

View File

@ -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;