From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121166 invoked by alias); 24 Jun 2019 08:11:58 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 121154 invoked by uid 89); 24 Jun 2019 08:11:58 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=icc, HX-Received:906, HX-HELO:sk:mail-ed, 1994 X-HELO: mail-ed1-f41.google.com Received: from mail-ed1-f41.google.com (HELO mail-ed1-f41.google.com) (209.85.208.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Jun 2019 08:11:57 +0000 Received: by mail-ed1-f41.google.com with SMTP id p15so20412439eds.8 for ; Mon, 24 Jun 2019 01:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=VlqP//FhdIsMQt/IWanJJxpo34n93TMu2LLZiyVwHkk=; b=cAus38F+pwx5S8jVAFcM4kyksj6f2no1A1KkT5Q6ev8GZHY1xe/EfTDx1hlNUHJ0tk ZqFPHlN6pfF2eGxdrOENO0bNP3ExCHJtl6//PFncnZlfmeVAQ7dyAmYq2gmTOhpUEa9J MPt9ofP3rhMGLlpo4J4v5flLaVcP58Z3YXqUbulRgyJUWcx3ndflbUfYlNmbjGG2GWtK yRm8EY+3a7kBALl00e1lcjRb6MIKQlRlS9XDPS9T2zXx2igHBOnDy/IM8rbZDMPRKj8s KVOkDkptiBedCVhRkSxzF+wm4eSKe2G3IonZgFXs8eQ9JXz7hcWErFBq2iadTtT+F23U qHgQ== MIME-Version: 1.0 From: Gohil Dwijesh Date: Mon, 24 Jun 2019 08:11:00 -0000 Message-ID: Subject: Partial dead code elimination To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-06/txt/msg00080.txt.bz2 It seems that partial dead code elimination has not been implemented by the gcc and icc. I saw dump files dumped by the gcc using the following command. gcc -O3 -fdump-tree-all I can not even find a single pass for partial dead code elimination though in the research papers(Partial Dead Code Elimination, June 1994) algorithm is clearly mentioned. Applying partial dead code elimination, execution time either remains the same or decreases.* I am wondering, why is it not implemented by the recent compilers?* example of partial dead code elimination x = 4; y=7; y = 7; y = 7; if(cond) then if(cond) then if(cond) then x = 4; x = 3; x = 3; -------------> x = 3; ---------------> else else else x = 4; z = 4; x = 4; z = 4; end if; z = 4; end if; out(x); end if; out(x) out(x)