------- Comment #2 from sergei_lus at yahoo dot com 2009-01-15 21:03 ------- Andrew, thank you for the prompt reply.
I have seen PR 31849 and used the patch suggested. Without it autoincrement would not work at all for either case. But the patch seems to deal with the case when iv _were_ detected and generally alters cost computation to take that addressing mode into account, while in this case I see that ivs are _not_ detected in the first place. This seems to be a more fundamental issue - should SSA be made "minimal" at that point or should iv detection be improved to "see" trough aliased PHI node I lack better words to describe it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38856