forked from OSchip/llvm-project
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:
parent
88cad7e5cf
commit
0f298a2655
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue