Mesa (main): nir: return false for loops in contains_other_jump()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Aug 19 14:24:10 UTC 2021
Module: Mesa
Branch: main
Commit: 59f2c85845cd9226b62d83d7d221bd1f1f906068
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=59f2c85845cd9226b62d83d7d221bd1f1f906068
Author: Daniel Schürmann <daniel at schuermann.dev>
Date: Sat Oct 31 23:25:12 2020 +0100
nir: return false for loops in contains_other_jump()
Allows to unwrap more loops.
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12473>
---
src/compiler/nir/nir_loop_analyze.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/compiler/nir/nir_loop_analyze.h b/src/compiler/nir/nir_loop_analyze.h
index c72294699e9..b09540150be 100644
--- a/src/compiler/nir/nir_loop_analyze.h
+++ b/src/compiler/nir/nir_loop_analyze.h
@@ -63,7 +63,8 @@ contains_other_jump(nir_cf_node *node, nir_instr *expected_jump)
return false;
}
case nir_cf_node_loop:
- return true;
+ /* the jumps of nested loops are unrelated */
+ return false;
default:
unreachable("Unhandled cf node type");
More information about the mesa-commit
mailing list