R600: Use StructurizeCFGPass for non SI targets
authorTom Stellard <thomas.stellard@amd.com>
Thu, 10 Oct 2013 17:11:12 +0000 (17:11 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 10 Oct 2013 17:11:12 +0000 (17:11 +0000)
commitde28bdadff78ceea6bb05e23dc3b4cc92fa359ed
tree40e51bd681f55003fe60c9f0f10bf43f25c4d18c
parent6a5a667517160ca1b557002a29d08868ae029451
R600: Use StructurizeCFGPass for non SI targets

StructurizeCFG pass allows to make complex cfg reducible ; it allows a lot of
shader from shadertoy (which exhibits complex control flow constructs) to works
correctly with respect to CFG handling (and allow us to detect potential bug in
other part of the backend).

We provide a cmd line argument to disable the pass for debug purpose.

Patch by: Vincent Lejeune

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192363 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPU.td
lib/Target/R600/AMDGPUSubtarget.cpp
lib/Target/R600/AMDGPUSubtarget.h
lib/Target/R600/AMDGPUTargetMachine.cpp
lib/Target/R600/R600EmitClauseMarkers.cpp
lib/Target/R600/R600Packetizer.cpp