summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_phi_builder.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-07-22 00:51:24 -0500
committerJason Ekstrand <[email protected]>2019-07-22 16:17:18 -0500
commit5c5f11d1dd3b52e80483f132236c690cbbc3ea0b (patch)
tree4c553ebc8481c73372b0fae746877687ccf30e8d /src/compiler/nir/nir_phi_builder.c
parentfa63fad3332309afa14fea68c87cf6aa138fb45c (diff)
nir: Remove a bunch of large stack arrays
Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_phi_builder.c')
-rw-r--r--src/compiler/nir/nir_phi_builder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_phi_builder.c b/src/compiler/nir/nir_phi_builder.c
index 621777d6ecc..97edea777f4 100644
--- a/src/compiler/nir/nir_phi_builder.c
+++ b/src/compiler/nir/nir_phi_builder.c
@@ -277,7 +277,7 @@ void
nir_phi_builder_finish(struct nir_phi_builder *pb)
{
const unsigned num_blocks = pb->num_blocks;
- NIR_VLA(nir_block *, preds, num_blocks);
+ nir_block **preds = rzalloc_array(pb, nir_block *, num_blocks);
foreach_list_typed(struct nir_phi_builder_value, val, node, &pb->values) {
/* We treat the linked list of phi nodes like a worklist. The list is