From 59bfc9c6cb2db6df42d424f45aeead7846de1972 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 23 May 2022 12:54:22 -0700 Subject: [PATCH] intel: Fix analysis invalidation in eliminate_find_live_channel If we saw a HALT instruction, we would forget to invalidate our analysis pass information before returning progress. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw_fs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index af6c8fbec2a..c97c6819a3d 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -3217,7 +3217,7 @@ fs_visitor::eliminate_find_live_channel() /* This can potentially make control flow non-uniform until the end * of the program. */ - return progress; + goto out; case SHADER_OPCODE_FIND_LIVE_CHANNEL: if (depth == 0) { @@ -3234,6 +3234,7 @@ fs_visitor::eliminate_find_live_channel() } } +out: if (progress) invalidate_analysis(DEPENDENCY_INSTRUCTION_DETAIL);