This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/14341] Missed comparision optimization (jump threading related)
- 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: 22 Dec 2004 05:33:04 -0000
- Subject: [Bug tree-optimization/14341] Missed comparision optimization (jump threading related)
- References: <20040229062941.14341.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-12-22 05:33 -------
(In reply to comment #9)
> The first two testcases seem to be OK. All calls to f are f(1).
>
> The last testcase is probably not what Andrew had in mind.
> Specifically, "i" in the innermost scope isn't initialized.
>
> Andrew, can you confirm (and close if you think these are fixed)?
It is not fixed for me on PPC:
cmpw cr7,r30,r28
crnot 30,29
mfcr r3
rlwinm r3,r3,31,1
bl L_f$stub
r3 is where the first argrument is stored.
but you are right about the last testcase being wrong.
--
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet| |powerpc-darwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14341