diff mbox series

[committed] vect: Restore aarch64 bootstrap

Message ID mpt8rcfc039.fsf@arm.com
State New
Headers show
Series [committed] vect: Restore aarch64 bootstrap | expand

Commit Message

Richard Sandiford June 19, 2023, 8:44 a.m. UTC
Spot-tested on aarch64-linux-gnu, pushed as obvious.

Richard


gcc/
	* tree-vect-loop-manip.cc (vect_set_loop_condition_partial_vectors):
	Handle null niters_skip.
---
 gcc/tree-vect-loop-manip.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/tree-vect-loop-manip.cc b/gcc/tree-vect-loop-manip.cc
index 213d248b485..20f570e4a0d 100644
--- a/gcc/tree-vect-loop-manip.cc
+++ b/gcc/tree-vect-loop-manip.cc
@@ -820,7 +820,8 @@  vect_set_loop_condition_partial_vectors (class loop *loop,
   tree ni_actual_type = TREE_TYPE (niters);
   unsigned int ni_actual_precision = TYPE_PRECISION (ni_actual_type);
   tree niters_skip = LOOP_VINFO_MASK_SKIP_NITERS (loop_vinfo);
-  niters_skip = gimple_convert (&preheader_seq, compare_type, niters_skip);
+  if (niters_skip)
+    niters_skip = gimple_convert (&preheader_seq, compare_type, niters_skip);
 
   /* Convert NITERS to the same size as the compare.  */
   if (compare_precision > ni_actual_precision