This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/34849] Missed autoincrement opportunities due to a different basic block structure.
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2009 21:51:29 -0000
- Subject: [Bug rtl-optimization/34849] Missed autoincrement opportunities due to a different basic block structure.
- References: <bug-34849-14766@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from steven at gcc dot gnu dot org 2009-05-01 21:51 -------
Crossjumping does nothing, because there is nothing to crossjump anymore at
that point. The two stores have been replaced with one and a conditional set:
- in .ce1 (ifcvt1) we haven't converted to a conditional set two stores
- in .ce2 there is a conditional set to a reg and only one store
The conditional set is to a reg (r = in[i] ? 0x1234 : 0x9876).
Anwyay, ce2 is *after* auto-inc-dec. We would probably optimize this if you'd
run auto-inc-dec after ce2. I don't know why this transformation is not
already done in ce1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34849