presentation-not-inlined.c

Line Hotness Pass Source Function / Inlining Chain
1
// Taken from Adam Nemet's November 2016 LLVM talk
2
3
#include "shared.h"
4
5
int compute_sum_without_inlining (int arr[], int n)
6
{
7
  int sum = 0;
8
  for (int i = 0; i < n; ++i)
100.00 vect

                        
^=== analyzing loop === Analyzing loop at presentation-not-inlined.c:8 === analyze_loop_nest === === vect_analyze_loop_form === === get_loop_niters === Symbolic number of iterations is (unsigned int) n_9(D) not vectorized: loop contains function calls or data references that cannot be analyzed
  • compute_sum_without_inlining
9
    accumulate (arr[i], &sum);
100.00 inline
    ^  not inlinable: compute_sum_without_inlining/0 -> accumulate/1, function body not available
    
  • compute_sum_without_inlining
10
  return sum;
11
}