From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 046003858D35; Tue, 4 Jul 2023 09:33:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 046003858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688463190; bh=02qZmnPHczxSyZJkO6heoo6J8/URPYxgjJto7djMSzU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WF6HJl3uvTbwNCvderxoRJ4m/at45jUmgfT4qSRyqmqE2n3i5g87u6bnohepmoD7M Te3oHHH2IrDA3TOyrCvRBupWiPODeIAEIYXkwvmkInn5Er1oQpDu7jsY+1W+9ffIxh aY/MrsgBF6+9QPoFf+mz8g5ZCq5Yh+G2s4ezav2E= From: "hliu at amperecomputing dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110531] Vect: slp_done_for_suggested_uf is not initialized in tree-vect-loop.cc Date: Tue, 04 Jul 2023 09:33:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hliu at amperecomputing dot com X-Bugzilla-Status: UNCONFIRMED 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=3D110531 --- Comment #10 from Hao Liu --- > foo is just an example for not getting inlined, the point here is extra c= ost paid. My point is that the case is different from the original case in tree-vect-loop.cc. For example, change the case as following: __attribute__((noipa)) int foo(int *a) { *a =3D=3D 1 ? return 1 : return 0;} That's similar to the original problem (the value of "a" is undefiend). I don't mean that "a" must be initialized in test(). We can also initalize= "a" in foo, but should not use "a" before initialization. E.g. __attribute__((noipa)) int foo(int *a) {=20 *a =3D=3D 1; ... if (*a) } The above case has no problem.=