On Tue, Sep 30, 2025 at 9:37 PM Sebastian Pop <[email protected]> wrote: > > Thanks Richi for your review. > > Please find attached the updated patch following your recommendations. > > Regstrapped on arm64-linux.
Please instead do as I suggested (see below). The special value 2147483647 is "autodetect", there should be no other change required. -fno-tree-parallelize-loops maps to -ftree-parallelize-loops=1 (I guess zero would be applicable as well for -fno-). diff --git a/gcc/common.opt b/gcc/common.opt index f6d93dc05fb..d8f75d38e79 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -3303,6 +3303,10 @@ ftree-parallelize-loops= Common Joined RejectNegative UInteger Var(flag_tree_parallelize_loops) Init(1) Optimization -ftree-parallelize-loops=<number> Enable automatic parallelization of loops. +ftree-parallelize-loops +Common Alias(ftree-parallelize-loops=,2147483647,1) +Enable automatic parallelization of loops. + ftree-phiprop Common Var(flag_tree_phiprop) Init(1) Optimization Enable hoisting loads from conditional pointers. it seems using -1u isn't handled by some of the option processing code, likewise using the actual unsinged integer value. But I think INT_MAX works just fine here. > > > Sebastian
