https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40209
Andrew Pinski changed:
What|Removed |Added
CC||zsojka at seznam dot cz
--- Comment #9 f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40209
Andrew Pinski changed:
What|Removed |Added
CC||sjames at gcc dot gnu.org
--- Comment #8
--- Comment #7 from nvachhar at google dot com 2009-07-24 17:47 ---
Subject: Re: ICE in iv_analyze_def caused by
stale REG_UNUSED note
This looks reasonable to me. Given the caveats you mention in the
comment, this would need to be tested for correctness (esp. w.r.t. the
newl
--- Comment #6 from steven at gcc dot gnu dot org 2009-07-24 17:04 ---
Then we should write a new function, something like this in df.h perhaps:
/* Given an INSN, return a SET expression if the insn has only one
SET whose SET_DEST is used. If SET_DEST is memory, then the SET is
a
--- Comment #5 from nvachhar at google dot com 2009-07-24 15:39 ---
Subject: Re: ICE in iv_analyze_def caused by
stale REG_UNUSED note
loop-iv does need notes, albeit indirectly through the single_set
function. single_set looks at the REG_UNUSED note, and if all but one
set h
--- Comment #4 from steven at gcc dot gnu dot org 2009-07-24 06:27 ---
A hint, please, about why the patch of comment #2 would be the correct fix. As
far as I can tell, loop-iv doesn't need the notes and shouldn't have to clean
up other passes' mess. This patch also introduces a pass or
--- Comment #3 from ubizjak at gmail dot com 2009-07-24 06:25 ---
Please also add the testcase from Comment #1 to gcc testsuite.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40209
--- Comment #2 from ian at gcc dot gnu dot org 2009-07-24 04:01 ---
Subject: Bug 40209
Author: ian
Date: Fri Jul 24 04:01:13 2009
New Revision: 150038
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150038
Log:
PR rtl-optimization/40209
* loop-iv.c (iv_analysis_lo