diff options
author | Tom Stellard <[email protected]> | 2012-08-28 15:25:35 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-09-17 21:09:43 +0000 |
commit | bfd55711c1eb32ffbfceb9d566abae98f0015f23 (patch) | |
tree | db80e06a376175080bd0362dec090027e4309672 /src/gallium/drivers/radeon/AMDILCFGStructurizer.cpp | |
parent | ef0d7e13d7633b2d855e95dc7de2bb833592ec70 (diff) |
radeon/llvm: Inital flow control support for SI
This adds basic flow control support for If-Then-Else blocks using
predicates (stored in the EXEC register) and a predicate stack for
nested flow control.
Diffstat (limited to 'src/gallium/drivers/radeon/AMDILCFGStructurizer.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/AMDILCFGStructurizer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/AMDILCFGStructurizer.cpp b/src/gallium/drivers/radeon/AMDILCFGStructurizer.cpp index b167d62fa0a..20e27ef1132 100644 --- a/src/gallium/drivers/radeon/AMDILCFGStructurizer.cpp +++ b/src/gallium/drivers/radeon/AMDILCFGStructurizer.cpp @@ -2892,6 +2892,8 @@ struct CFGStructTraits<AMDGPUCFGStructurizer> switch (instr->getOpcode()) { case AMDGPU::JUMP: return instr->getOperand(instr->findFirstPredOperandIdx()).getReg() == 0; + case AMDGPU::BRANCH: + return true; default: return false; } |