Skip to content
Snippets Groups Projects
Commit 728d7bc8 authored by Neil Roberts's avatar Neil Roberts
Browse files

i965: Add a second successor to BRW_OPCODE_WHILE


It is possible to directly predicate the WHILE instruction. In this
case there will be a second successor block because the execution can
resume from the instruction after the loop. This will be used in a
subsequent patch.

Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
parent 886d46b0
No related branches found
No related tags found
No related merge requests found
......@@ -305,6 +305,10 @@ cfg_t::cfg_t(exec_list *instructions)
assert(cur_do != NULL && cur_while != NULL);
cur->add_successor(mem_ctx, cur_do);
if (inst->predicate)
cur->add_successor(mem_ctx, cur_while);
set_next_block(&cur, cur_while, ip);
/* Pop the stack so we're in the previous loop */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment