From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED5BB3858D1E; Wed, 17 May 2023 17:23:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED5BB3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684344209; bh=jceltDeA0VnJD0JLqWU0U5y3Wnh8Rnv2y0t+xJKYeFo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JChnVfQ7CbR/7DEfhCFk5XIH1kaUZ2PrGMUScE9aM+eKMrTVnymOOyWqg6jCmp8wL /M34Nwy6aEfx4KDUxNxMknyRmKuyQTUPhszQVZ4eViUbZw44P7vS9MqDeyD4iO0rpY HWghXlL4ZTeefgc4yrLSKN/EBId4zuZXzS9uqjsQ= From: "hiraditya at msn dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109441] missed optimization when all elements of vector are known Date: Wed, 17 May 2023 17:23:29 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: hiraditya at msn dot com X-Bugzilla-Status: NEW 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=3D109441 --- Comment #3 from AK --- > But IMHO it's academic, right? yes. i was just messing with vector codegen. But in case all the elements o= f a vector/array are same, maybe the loop can be replaced with equivalent computation?=