From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18114 invoked by alias); 2 Jul 2010 08:46:03 -0000 Received: (qmail 18052 invoked by uid 48); 2 Jul 2010 08:45:41 -0000 Date: Fri, 02 Jul 2010 08:46:00 -0000 Message-ID: <20100702084541.18051.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/44773] [4.6 Regression] Unnecessary temporaries increase the runtime for channel.f90 by ~70% In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mikael at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-07/txt/msg00167.txt.bz2 ------- Comment #3 from mikael at gcc dot gnu dot org 2010-07-02 08:45 ------- It could be useful at several places to have a function traversing the code of a procedure and telling whether an array is read or written to by that procedure. It should be quite doable for the write case (only assignments and procedure calls to care about). For the read case, however, it could take some time to get it right, as every statement has its own parameters with its own restrictions and assumptions. This is pure speculation anyway. By the way, what is the complete (or reduced) test case ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44773