main.c

Line Hotness Pass Source Function / Inlining Chain
1
#include <stdio.h>
2
#include "shared.h"
3
4
int flag = 0;
5
6
int main (int argc, const char **argv)
7
{
8
  int i;
9
  int arr[256];
10
11
  printf ("pgo-demo\n");
0.00 inline
  ^not inlinable: main/12 -> __builtin_puts/13, function body not available
  
  • main
12
13
  for (i = 0; i < 100000; i++)
0.39 cunrolli
  ^loop 1 iterates 100000 times
  
  • main
0.39 ivcanon
  ^loop 1 iterates 99999 times
  
  • main
0.39 vect
  ^=== analyzing loop ===
    === analyze_loop_nest ===
      === vect_analyze_loop_form ===
        === get_loop_niters ===
      not vectorized: loop contains function calls or data references that cannot be analyzed
  
  • main
0.39 vect
  ^vectorized 0 loops in function
  
  • main
0.39 cunroll
  ^loop 1 iterates 99999 times
  
  • main
14
    {
15
      devirt_cc_body ();
0.39 inline
      ^not inlinable: main/12 -> devirt_cc_body/14, function body not available
      
  • main
16
      loop_opts_c_body ();
0.39 inline
      ^not inlinable: main/12 -> loop_opts_c_body/15, function body not available
      
  • main
17
      workload_c_body ();
0.39 inline
      ^not inlinable: main/12 -> workload_c_body/16, function body not available
      
  • main
18
      compute_sum_with_inlining (arr, 256);
0.39 inline
      ^not inlinable: main/12 -> compute_sum_with_inlining/17, function body not available
      
  • main
19
      compute_sum_without_inlining (arr, 256);
0.39 inline
      ^not inlinable: main/12 -> compute_sum_without_inlining/18, function body not available
      
  • main
20
    }
21
22
  printf ("count: %i\n", count);
0.00 inline
  ^not inlinable: main/12 -> printf/20, function body not available
  
  • main
23
24
25
  return 0;
26
}