This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)
- From: "rakdver at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jul 2006 00:45:48 -0000
- Subject: [Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)
- References: <bug-28364-37@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #25 from rakdver at gcc dot gnu dot org 2006-07-18 00:45 -------
Created an attachment (id=11906)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11906&action=view)
A patch for loop header selection.
I tried improving the heuristics for the selection of the loop header, however
without success. In ch, copying all the exits simply looks like a good idea,
since it makes the loop header contain the most important looking part of the
loop, and makes the latch of the loop empty. I append the patch I made, in
case someone wanted to play with it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28364