From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13060 invoked by alias); 27 Nov 2014 09:35:56 -0000 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 Received: (qmail 12952 invoked by uid 48); 27 Nov 2014 09:35:53 -0000 From: "jiwang at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/62173] [5.0 regression] [AArch64] Can't ivopt array base address while ARM can Date: Thu, 27 Nov 2014 09:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jiwang at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jiwang at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc dependson Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg03207.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62173 Jiong Wang changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org Depends on| |52563 --- Comment #12 from Jiong Wang --- the root cause why it's not ivopted on AArch64 is because must_check_src_overflow = TYPE_PRECISION (ct) < TYPE_PRECISION (type); code above in convert_affine_scev, the input type is sizetype, so DI for 64bit arch, SI for 32bit arch, ct is SI, thus, must_check_src_overflow set to true for 64bit arch, then failed later scev_probably_wraps_p check. And I found similar issue reported back in 2012, at bug 52563. I verified this bug exist on other 64 archs, like mips64, ppc64, x86-64 Richard, on 52563, I see you was working on this, do you have any thoughts on this?