This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/2806] if's are not combined together
- 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: 17 Nov 2003 15:41:03 -0000
- Subject: [Bug optimization/2806] if's are not combined together
- References: <20010511150601.2806.eric-gcc@omnifarious.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-17 15:41 -------
Suspending as the combining of the if is fixed on the tree-ssa branch.
On PPC the code now looks like:
_foo:
li r2,0
cmpwi cr6,r3,1
ori r0,r2,65535
cmpw cr7,r4,r0
bnelr+ cr7
bnelr+ cr6
lis r7,ha16(L_abarney$non_lazy_ptr)
lis r5,ha16(L_afred$non_lazy_ptr)
lwz r9,lo16(L_abarney$non_lazy_ptr)(r7)
li r6,6
li r11,2
lwz r4,lo16(L_afred$non_lazy_ptr)(r5)
li r3,5
stw r6,4(r9)
stw r11,0(r4)
stw r3,0(r9)
blr
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2806