From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BBC713858C66; Tue, 1 Aug 2023 13:49:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BBC713858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690897761; bh=NhRSu+Gs8/gg3kpjhmWTR1l9N1974dDMLSref1jwUR4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=d8D+fAGpOcmVTaJ1AOdgPstT8WkQwLL+NwoQV65LpMUGj35F8KRazJ03GzxM9VzV2 zwSlVDOLD0SAk3HSDlDR3SvIbeWU9I+Q0iaU/2+4S+oidQXIG1+m79koIb2w89GGYL Z0DJ6tDZP6yCoio9Gp3wKRNVhmLPkXCVvbJ47kmo= From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110625] [AArch64] Vect: SLP fails to vectorize a loop as the reduction_latency calculated by new costs is too large Date: Tue, 01 Aug 2023 13:49:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rsandifo 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110625 --- Comment #18 from Tamar Christina --- Hi, here's the reduced case: ---- > cat analyse.i double x264_weights_analyse___trans_tmp_1; float x264_weights_analyse_ref_mean; x264_weights_analyse() { x264_weights_analyse___trans_tmp_1 =3D floor(x264_weights_analyse_ref_mea= n); } ---- > cat pixel.i unsigned x264_pixel_satd_8x4___trans_tmp_1; x264_pixel_satd_8x4_sum; x264_pixel_satd_8x4() { for (int i; i; i++) { x264_pixel_satd_8x4___trans_tmp_1 =3D i; x264_pixel_satd_8x4_sum +=3D x264_pixel_satd_8x4___trans_tmp_1; } return (unsigned)x264_pixel_satd_8x4_sum >> 1; } --- reproduce with: gcc -c -o pixel.o pixel.i -mcpu=3Dneoverse-v1 -flto=3Dauto -Ofast -w gcc -c -o analyse.o analyse.i -mcpu=3Dneoverse-v1 -flto=3Dauto -Ofast -w gcc -flto=3Dauto -Ofast pixel.o analyse.o -lm -o x264_r -r -w=