This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11319] [3.3/3.4 regression] loop miscompiled on ppc32
- From: "wilson at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2003 23:56:46 -0000
- Subject: [Bug optimization/11319] [3.3/3.4 regression] loop miscompiled on ppc32
- References: <20030625132058.11319.marcus@jet.franken.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11319
------- Additional Comments From wilson at gcc dot gnu dot org 2003-08-11 23:56 -------
Richard's patch did not introduce the problem, it just exposed it. In the old
days, a sequence was an insn chain if more than one instruction, and a pattern
if only one instruction. In the single insn case, which is the common case, the
loop.c code was passing the pattern to single_set which failed, and thus
prevented it from calling record_base_value. Richard's patch fixed it to call
record_base_value as intended, thus exposing the alias.c problem fixed by my
patch in PR 10021.
This incidentally points out a problem with loop_regs_update. The !INSN_P code
is obsolete and should be removed.