R600: Use a refined heuristic to choose when switching clause
authorVincent Lejeune <vljn@ovi.com>
Fri, 7 Jun 2013 23:30:34 +0000 (23:30 +0000)
committerVincent Lejeune <vljn@ovi.com>
Fri, 7 Jun 2013 23:30:34 +0000 (23:30 +0000)
commit843c6c2d0e83bcd52a215d768bacaa7b5ffe16a4
tree5c1348e877b36cf4695b7d7d50c3e01edca25996
parentb01bdf87ff5e13eb22fcc20cd395bf282fbf1ecd
R600: Use a refined heuristic to choose when switching clause

This is using a hint from AMD APP OpenCL Programming Guide with
empirically tweaked parameters.
I used Unigine Heaven 3.0 to determine best parameters on my system
(i7 2600/Radeon 6950/Kernel 3.9.4) the benchmark :
it went from 38.8 average fps to 39.6, which is ~3% gain.
(Lightmark 2008.2 gain is much more marginal: from 537 to 539)

There is no lit test provided as the parameter were determined
empirically and it it would be nearly impossiblet to find a test
program that check for optimal behavior.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183593 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/R600MachineScheduler.cpp
lib/Target/R600/R600MachineScheduler.h