R600: control flow optimization
authorTom Stellard <thomas.stellard@amd.com>
Wed, 19 Dec 2012 22:10:33 +0000 (22:10 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 19 Dec 2012 22:10:33 +0000 (22:10 +0000)
commite7b907d85c194778ef68b40e2339647627dea4ba
tree996dae6797d78b7611818f5578d7ae204cc93b8a
parentf8794354b25af9dc0bab3c341bcfee3b7240432d
R600: control flow optimization

Branch if we have enough instructions so that it makes sense.
Also remove branches if they don't make sense.

Patch by: Christian König

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Christian König <deathsimple@vodafone.de>
llvm-svn: 170592
llvm/lib/Target/R600/SILowerControlFlow.cpp