This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14135] No sibcalling for some obvious places (happens in java's front-end)
- 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: 4 Mar 2004 18:22:39 -0000
- Subject: [Bug optimization/14135] No sibcalling for some obvious places (happens in java's front-end)
- References: <20040213044237.14135.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-04 18:22 -------
I should mention when the return statements are combined, there is another optimization
which needs to happen (which I already have a patch for):
bb0:
if (a != b) goto bb2; else goto bb1;
bb1:
bb2:
x = PHI (a (bb1), b (bb0))
We can rewrite that as:
bb0:
bb1:
bb2:
x = b;
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14135