From 152754665abb937a49e451331c88266ef5c3cdf1 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Mon, 5 Aug 2019 18:21:05 -0700 Subject: [PATCH] intel/ir: Represent logical edge of BREAK instruction. Currently only the physical back-edge is represented, which incidentally also leads to the exit block of the loop, but we need the direct logical edge in addition for our logical CFG representation to be complete. Reviewed-by: Jordan Justen Reviewed-by: Caio Marcelo de Oliveira Filho --- src/intel/compiler/brw_cfg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/compiler/brw_cfg.cpp b/src/intel/compiler/brw_cfg.cpp index d5e8913e058..70a7530e265 100644 --- a/src/intel/compiler/brw_cfg.cpp +++ b/src/intel/compiler/brw_cfg.cpp @@ -352,6 +352,7 @@ cfg_t::cfg_t(exec_list *instructions) */ assert(cur_do != NULL); cur->add_successor(mem_ctx, cur_do, bblock_link_physical); + cur->add_successor(mem_ctx, cur_while, bblock_link_logical); next = new_block(); if (inst->predicate)