summaryrefslogtreecommitdiffstats
path: root/src/intel/isl/isl.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-08-24 21:49:10 -0700
committerJason Ekstrand <[email protected]>2016-08-25 14:08:07 -0700
commit78715c7211aa81a1b189c3a29df4b2b98d2e0fc3 (patch)
treecf4f557248e8b2d5362bf8d498ceeadc70eabd8e /src/intel/isl/isl.c
parent3eddf5219e3ac17e46403849b40bfd217eb6e9d8 (diff)
nir/phi_builder: Don't recurse in value_get_block_def
In some programs, we can have very deep dominance trees and the recursion can cause us to risk stack overflows. Instead, we replace the recursion with a pair of loops, one at the start and one at the end. This is functionally equivalent to what we had before and it's actually a bit easier to read in the new form without the recursion. Signed-off-by: Jason Ekstrand <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97225 Reviewed-by: Connor Abbott <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.c')
0 files changed, 0 insertions, 0 deletions