mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
274ef1457a
Don't print a line multiple times, each for different inlining contexts, if nothing happened in any context. This prevents situations like this: [[ > main: 65 | if ((i * ni + j) % 20 == 0) fprintf > print_array: 65 | if ((i * ni + j) % 20 == 0) fprintf ]] which could happen if different optimizations were missed in different inlining contexts. llvm-svn: 291361
14 lines
144 B
C
14 lines
144 B
C
void bar(void);
|
|
void foo(int n) {
|
|
if (n) { bar(); } else { while (1) {} }
|
|
}
|
|
|
|
void quack(void) {
|
|
foo(0);
|
|
}
|
|
|
|
void quack2(void) {
|
|
foo(4);
|
|
}
|
|
|