From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D79BB3858C52; Wed, 28 Feb 2024 07:26:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D79BB3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1709105165; bh=ajfd9jwF82kCZw9UYmosm9e1PMvkmZroS+Hekf61WtU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mWyuUtGZL+45E7DRDwnw7WdPXyf/9KBIQIhRwuZ7TVtDpL7HixhUHy3boAnrJw/Xz R2hvxHbGFOhxdtsDEZ6xLe+4RYQmD8x2T4YGONMMvPpQHfrCbxB1gBKRIEkg84m/uk v6iXEOcdcHv59+TwX/USXhPGNLgfLCBlnqajAFSs= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/99689] Initialized local variable becomes uninitialized after use Date: Wed, 28 Feb 2024 07:26:04 +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: 9.3.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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=3D99689 --- Comment #7 from Andrew Pinski --- GCC 9.3.0 says: /app/example.cpp:19:18: missed: can't use a fully-masked loop because the target doesn't have the appropriate masked load or store. /app/example.cpp:19:18: note: vect_model_load_cost: aligned. /app/example.cpp:19:18: note: vect_model_load_cost: inside_cost =3D 2, prologue_cost =3D 0 . /app/example.cpp:19:18: note: =3D=3D> examining statement: _2 =3D (unsign= ed int) _24; /app/example.cpp:19:18: note: vect_is_simple_use: operand # VUSE <.MEM_12> MEM[(long unsigned intD.17 *)SR.139_80 + 8B], type of def: internal ... But GCC 9.4.0 says: /app/example.cpp:19:18: missed: not falling back to elementwise accesses /app/example.cpp:20:49: missed: not vectorized: relevant stmt not support= ed: _24 =3D MEM[(long unsigned int *)SR.139_80 + 8B]; /app/example.cpp:19:18: missed: bad operation or unsupported loop bound. /app/example.cpp:19:18: missed: couldn't vectorize loop /app/example.cpp:20:49: missed: not vectorized: relevant stmt not supported: _24 =3D MEM[(long unsigned int *)SR.139_80 + 8B]; /app/example.cpp:9:1: note: vectorized 0 loops in function.=