From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AB8353858D37; Sat, 22 Aug 2020 16:32:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB8353858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1598113967; bh=Krdo6WibaRtkxaDmoQOOzhMNZHOJE3MIWYCNUGePPbQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KgwKhhDZpxh+/7PUFjUot85AttV91jbU6e2O4CkDj9juPlmd4bduXF6THRKDWSgbL 9Sicd8rlhRTbpzDxPlsR68N+HLLcvtAILPNrWdh3wPTUNGlQac3OB0pbrReFVUk2IJ YoC7yTN0MvvV6yGCFs94U5dqbQ2KUIOAUeGpVIug= From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/96654] Failure to optimize vectorized conversion to `int` with AVX Date: Sat, 22 Aug 2020 16:32:47 +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: 11.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org 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 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: Sat, 22 Aug 2020 16:32:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96654 --- Comment #2 from Marc Glisse --- gcc doesn't seem very fond of using 2 different vector bitsizes at the same time, so VEC_PACK_FIX_TRUNC_EXPR takes 2 vectors of 2 double and gives one vector of 4 int. At the RTL level, we have a vec_concat:V4DF of 2 V2DF adja= cent in memory, but nothing knows to turn that into a single load. (the conversi= on itself of 4 double to int is fine)=