OSDN Git Service

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)
commitd09d43ae53e1eba83dc5516a148748001b8ff812
tree9f86e90aa500f167463f6b9e320987b4f492f4f8
parent6b7d99d47321ebb478b22afd2e317fe89d2149db
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>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170592 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SILowerControlFlow.cpp