[Mesa-dev] [PATCH] clover: Add a function internalizer pass before LTO v2

2012-06-28 Thread Tom Stellard
The function internalizer pass marks non-kernel functions as internal, which enables optimizations like function inlining and global dead-code elimination. v2: - Pass vector arguments by const reference --- .../state_trackers/clover/llvm/invocation.cpp | 59 --- 1 files c

Re: [Mesa-dev] [PATCH] clover: Add a function internalizer pass before LTO

2012-06-28 Thread Francisco Jerez
Tom Stellard writes: > I'll commit this tomorrow unless there are objections. > Looks OK to me, aside from the std::vector's being passed around by value instead of by const reference. > -Tom > > On Thu, Jun 21, 2012 at 02:05:24PM -0400, Tom Stellard wrote: >> The function internalizer pass mark

Re: [Mesa-dev] [PATCH] clover: Add a function internalizer pass before LTO

2012-06-27 Thread Tom Stellard
I'll commit this tomorrow unless there are objections. -Tom On Thu, Jun 21, 2012 at 02:05:24PM -0400, Tom Stellard wrote: > The function internalizer pass marks non-kernel functions as internal, > which enables optimizations like function inlining and global dead-code > elimination. > --- > .../

[Mesa-dev] [PATCH] clover: Add a function internalizer pass before LTO

2012-06-21 Thread Tom Stellard
The function internalizer pass marks non-kernel functions as internal, which enables optimizations like function inlining and global dead-code elimination. --- .../state_trackers/clover/llvm/invocation.cpp | 58 1 files changed, 48 insertions(+), 10 deletions(-) diff -