From 6fff3a03db5d2349383f9dea2b72d8d2109a9d09 Mon Sep 17 00:00:00 2001 From: Lander Gallastegi Date: Fri, 28 Feb 2025 19:10:47 +0100 Subject: [PATCH] Usefulness of conditional tree --- src/shader_recompiler/ir/conditional_tree.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shader_recompiler/ir/conditional_tree.cpp b/src/shader_recompiler/ir/conditional_tree.cpp index ef00285d9..5e064c43d 100644 --- a/src/shader_recompiler/ir/conditional_tree.cpp +++ b/src/shader_recompiler/ir/conditional_tree.cpp @@ -6,6 +6,10 @@ #include +// This can be used to get, for a given block, the list of conditions that +// must be true for the block to be executed. Can be also useful for +// for determining the maximum number of thimes a block is executed. + namespace Shader::IR { static void AddConditionalTree(std::span asl_span, Block::ConditionalData* parent) {