This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/36223] IV-opt is not optimal for mips
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 May 2008 19:09:24 -0000
- Subject: [Bug target/36223] IV-opt is not optimal for mips
- References: <bug-36223-14095@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-05-12 19:09 -------
Actually this is an IV-opt issue rather than a RA/PRE issue.
For GCC 4.1.1 targeting an internal PPC port, I get the following on the tree
level at the end:
<L1>:;
D.2011 = (long int *) ivtmp.92;
MEM[base: &AA, index: D.2011] = MEM[base: &A, index: D.2011];
MEM[base: &BB, index: D.2011] = MEM[base: &B, index: D.2011];
ivtmp.92 = ivtmp.92 + 4B;
if (ivtmp.92 != 2044B) goto <L1>; else goto <L49>;
Which should show that this is IV-opts issue rather than a PRE issue at all.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|rtl-optimization |target
Summary|bad interaction between |IV-opt is not optimal for
|PRE/register |mips
|allocation/reload |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36223