This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14418] Unnecessary loads and stores for tail call
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2004 21:28:42 -0000
- Subject: [Bug optimization/14418] Unnecessary loads and stores for tail call
- References: <20040303211113.14418.user42@zip.com.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-03-31 21:28 -------
Confirmed.
In particular, this is not necessary:
- after the call to bar(), the compiler tries to save the values of
x and y (which are in registers ebx and esi) to their original
locations. They should be unchanged there, so we do some unnecessary
stores here
- before the call to bar, the compiler loads y into esi, which is
really useless since y is never used in this function except for the
tail call.
W.
W.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |pessimizes-code
Last reconfirmed|0000-00-00 00:00:00 |2004-03-31 21:28:38
date| |
Summary| |Unnecessary loads and stores
| |for tail call
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14418