From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 97E473858C3A; Fri, 26 Nov 2021 21:42:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97E473858C3A From: "nils.smeds at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/103438] Updated documentation for gcc Optimization command line options (sec 3.11) Date: Fri, 26 Nov 2021 21:42:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.2.1 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: nils.smeds at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Nov 2021 21:42:45 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103438 --- Comment #8 from Nils Smeds --- (In reply to Nils Smeds from comment #7) > (In reply to Martin Li=C5=A1ka from comment #6) > > Lemme take a look. >=20 > Great, thanks.=20 prefetch-loop-arrays appears to be activated on arm,s390 and i386 at level = -O3 and higher on platforms that support software prefetch (and in the case of = i386 also have TARGET_SOFTWARE_PREFETCHING_BENEFICIAL defined). For aarch64 it appears to get activated for optimization level aarch64_tune_params.prefetch->default_opt_level and higher when aarch64_tune_params.prefetch->default_opt_level is defined See: gcc/common.opt gcc/config/arm/arm.c gcc/config/i386/i386-options.c gcc/config/aarch64/aarch64.c gcc/config/s390/s390.c So it does appear to be a bug in the code path for -Q --help=