aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarol Herbst <[email protected]>2018-07-16 14:58:31 +0200
committerKarol Herbst <[email protected]>2018-07-28 19:59:28 +0200
commitbc0e0c28186740493584da09d20587aa49732f96 (patch)
treeea9b32ab4c8f833893cc6e83ebf26700eeb94e63
parent0ca153f869d7bd5a1e2fc301b22edb96b77decff (diff)
nir/lower_int64: mark all metadata as dirty
v2: use nir_metadata_preserve preserve metadata in case of !progress Fixes: 074f5ba0b56b12ddaca81eac3d9ed19da7054297 "nir: Add a simple int64 lowering pass" Signed-off-by: Karol Herbst <[email protected]>
-rw-r--r--src/compiler/nir/nir_lower_int64.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_int64.c b/src/compiler/nir/nir_lower_int64.c
index 22f69ef4a60..0d7f165b406 100644
--- a/src/compiler/nir/nir_lower_int64.c
+++ b/src/compiler/nir/nir_lower_int64.c
@@ -279,6 +279,9 @@ lower_int64_impl(nir_function_impl *impl, nir_lower_int64_options options)
}
}
+ if (progress)
+ nir_metadata_preserve(impl, nir_metadata_none);
+
return progress;
}