From patchwork Mon Jul 1 21:12:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 256224 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 63E7A2C007E for ; Tue, 2 Jul 2013 07:12:14 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; q=dns; s=default; b=Nm/cPOMXeHUlIapSAz ZJZDHWHaRm8dyu6MJfEkb0klqHAxRQoBTmM/2RYdm+NkmvVypdrvm0WiX7Gpv1k1 Q6xYf8KegNLUSBmyifnDX+3lEd0VsDSpm2ojaxi2McpHE7BMN8J8cTd4dun50vdI ZfcL7AiU1vzsDnu+Mz3V8tCo8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; s=default; bh=FgqMzLoN/HLfrQhsBA6S79Se 0ik=; b=nKCXEzWEDy4HrQBcjFoP/8DPgnOBJRKceFNQGd4Axf5RcJZVKZ8Q4/Tb 4EkWl66fqML10BFm8/tG837qpgxNSqmGZphmWxxj/Kca7C/FuYyXwLpChrbpE8fy nWXpI73pGX2g6iCQoCf0xrjNUFjiHGKBtjUfMJRhIaBxjN2I+J0= Received: (qmail 25924 invoked by alias); 1 Jul 2013 21:12:07 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 25909 invoked by uid 89); 1 Jul 2013 21:12:07 -0000 X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, KHOP_THREADED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, SPF_PASS, TW_AV, TW_VZ autolearn=ham version=3.3.1 Received: from mail-ob0-f173.google.com (HELO mail-ob0-f173.google.com) (209.85.214.173) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 01 Jul 2013 21:12:06 +0000 Received: by mail-ob0-f173.google.com with SMTP id wc20so4789457obb.18 for ; Mon, 01 Jul 2013 14:12:05 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.72.137 with SMTP id d9mr11529845obv.99.1372713125085; Mon, 01 Jul 2013 14:12:05 -0700 (PDT) Received: by 10.182.52.234 with HTTP; Mon, 1 Jul 2013 14:12:05 -0700 (PDT) In-Reply-To: References: <20130630094328.GB1611@kam.mff.cuni.cz> <20130630094711.GA29983@kam.mff.cuni.cz> Date: Mon, 1 Jul 2013 23:12:05 +0200 Message-ID: Subject: Re: [patch,i386] Cannot inline sse*.* functions into avx functions From: Uros Bizjak To: Sriraman Tallam Cc: Jan Hubicka , GCC Patches , "H.J. Lu" , Jakub Jelinek , David Li , Rong Xu On Mon, Jul 1, 2013 at 8:01 PM, Sriraman Tallam wrote: > So, something like the patch attached? > > * config/i386/i386.c (ix86_option_override_internal): Turn > on all -mavx target flags by default as they are dependent > on AVX anyway. Yes, but please also add: so we won't trigger vzeroupper insertion pass for non-AVX targets. Uros. Index: i386.c =================================================================== --- i386.c (revision 200579) +++ i386.c (working copy) @@ -2578,7 +2578,7 @@ static const char *const cpu_names[TARGET_CPU_DEFA static bool gate_insert_vzeroupper (void) { - return TARGET_VZEROUPPER; + return TARGET_AVX && TARGET_VZEROUPPER; } static unsigned int