From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4781 invoked by alias); 5 Aug 2008 19:39:19 -0000 Received: (qmail 4769 invoked by uid 22791); 5 Aug 2008 19:39:18 -0000 X-Spam-Check-By: sourceware.org Received: from an-out-0708.google.com (HELO an-out-0708.google.com) (209.85.132.245) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 05 Aug 2008 19:38:44 +0000 Received: by an-out-0708.google.com with SMTP id c28so494536ana.104 for ; Tue, 05 Aug 2008 12:38:42 -0700 (PDT) Received: by 10.100.154.19 with SMTP id b19mr2047830ane.98.1217965122166; Tue, 05 Aug 2008 12:38:42 -0700 (PDT) Received: by 10.100.91.13 with HTTP; Tue, 5 Aug 2008 12:38:42 -0700 (PDT) Message-ID: Date: Tue, 05 Aug 2008 19:39:00 -0000 From: "Matt G." To: gcc-help@gcc.gnu.org Subject: IPA pass loop detection MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes 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 X-SW-Source: 2008-08/txt/msg00055.txt.bz2 When the interprocedural (ipa-*) passes are running, is loop information preserved? I'm having a hard time trying to find out if it is in fact preserved. I notice that loop structures can be created by flow_loops_find() in cfgloop.c, However, this function does not appear to be aware that there may be other functions than cfun, and as such seems not entirely friendly to IPA. Would a valid solution be to set cfun myself and call flow_loops_find()? -- Matthew