From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id F1D143858C00 for ; Tue, 30 May 2023 11:29:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F1D143858C00 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D078A2F4; Tue, 30 May 2023 04:30:16 -0700 (PDT) Received: from localhost (e121540-lin.manchester.arm.com [10.32.110.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D37B33F67D; Tue, 30 May 2023 04:29:30 -0700 (PDT) From: Richard Sandiford To: Richard Biener Mail-Followup-To: Richard Biener ,"Kewen.Lin" , "juzhe.zhong\@rivai.ai" , gcc-patches , richard.sandiford@arm.com Cc: "Kewen.Lin" , "juzhe.zhong\@rivai.ai" , gcc-patches Subject: Re: decremnt IV patch create fails on PowerPC References: <3C61C9A7B8836ACA+20230530172617084361351@rivai.ai> Date: Tue, 30 May 2023 12:29:29 +0100 In-Reply-To: (Richard Biener's message of "Tue, 30 May 2023 10:43:34 +0000 (UTC)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-22.4 required=5.0 tests=BAYES_00,KAM_DMARC_NONE,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Richard Biener writes: >> But how easy would it be to extend SCEV analysis, via a pattern match? >> The evolution of the IV phi wrt the inner loop is still a normal SCEV. > > No, the IV isn't a normal SCEV, the final value is different. Which part of the IV though? Won't all executions of the latch edge decrement the IV phi (and specifically the phi) by VF (and only VF)? So if we analyse the IV phi wrt the inner loop, the IV phi is simply { initial, -, VF }. I agree "IV phi - step" isn't a SCEV, but that doesn't seem fatal. Richard