From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115556 invoked by alias); 25 Jan 2016 14:56:10 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 115536 invoked by uid 89); 25 Jan 2016 14:56:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=H*RU:sk:smtprel, Hx-spam-relays-external:sk:smtprel, HX-HELO:sk:smtprel, Hx-spam-relays-external:sk:mailhos X-HELO: smtprelay.synopsys.com Received: from smtprelay.synopsys.com (HELO smtprelay.synopsys.com) (198.182.60.111) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 25 Jan 2016 14:56:09 +0000 Received: from dc8secmta1.synopsys.com (dc8secmta1.synopsys.com [10.13.218.200]) by smtprelay.synopsys.com (Postfix) with ESMTP id C424D10C1183; Mon, 25 Jan 2016 06:56:05 -0800 (PST) Received: from dc8secmta1.internal.synopsys.com (dc8secmta1.internal.synopsys.com [127.0.0.1]) by dc8secmta1.internal.synopsys.com (Service) with ESMTP id B7CE027113; Mon, 25 Jan 2016 06:56:05 -0800 (PST) Received: from mailhost.synopsys.com (unknown [10.13.184.66]) by dc8secmta1.internal.synopsys.com (Service) with ESMTP id 98C2E27102; Mon, 25 Jan 2016 06:56:05 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 89800FBA; Mon, 25 Jan 2016 06:56:05 -0800 (PST) Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id 585D2FB7; Mon, 25 Jan 2016 06:56:05 -0800 (PST) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 25 Jan 2016 06:56:05 -0800 Received: from DE02WEMBXA.internal.synopsys.com ([fe80::a014:7216:77d:d55c]) by DE02WEHTCB.internal.synopsys.com ([::1]) with mapi id 14.03.0195.001; Mon, 25 Jan 2016 15:56:02 +0100 From: Claudiu Zissulescu To: Joern Wolfgang Rennecke , "gcc-patches@gcc.gnu.org" CC: "Francois.Bedard@synopsys.com" , "jeremy.bennett@embecosm.com" Subject: RE: [PATCH 0/2] [ARC] Small fixes Date: Mon, 25 Jan 2016 14:56:00 -0000 Message-ID: <098ECE41A0A6114BB2A07F1EC238DE896616E0F3@de02wembxa.internal.synopsys.com> References: <1453728823-32064-1-git-send-email-claziss@synopsys.com> <56A635E1.80504@amylaar.uk> In-Reply-To: <56A635E1.80504@amylaar.uk> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2016-01/txt/msg01884.txt.bz2 =20 > FWIW, there's probably a missed optimization here - these constant - > constant comparisons could be folded down further. They are. The issue is when the CSE runs, wants to validate a new instructi= on with the propagated constant, which will lead to errors as it checks the= proper_comaprison_operator, as it hits the assert at the end. Returning ze= ro, it invalidates the instruction change, and the constant comparison will= be handled later on by other steps. //Claudiu