[Bug rtl-optimization/42835] Missed merging common code sequence at the end of two basic blocks

2011-01-31 Thread ramana at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42835

Ramana Radhakrishnan ramana at gcc dot gnu.org changed:

   What|Removed |Added

 CC||ramana at gcc dot gnu.org

--- Comment #5 from Ramana Radhakrishnan ramana at gcc dot gnu.org 2011-02-01 
01:04:59 UTC ---
Bernd, can this now be marked as fixed for 4.6.0 ? 

Ramana

Trunk today generates for the options provided the following sequence of code.

cmpr1, #0
bge.L2
ldrr0, [r0, #0]
cmpr0, #1
b.L5
.L2:
beq.L4
ldrr0, [r0, #0]
cmpr0, #2
.L5:
itene
movner0, #0
moveqr0, #1
bxlr
.L4:
movr0, r1
bxlr


[Bug rtl-optimization/42835] Missed merging common code sequence at the end of two basic blocks

2011-01-31 Thread bernds at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42835

Bernd Schmidt bernds at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||bernds at gcc dot gnu.org
 Resolution||FIXED

--- Comment #6 from Bernd Schmidt bernds at gcc dot gnu.org 2011-02-01 
01:10:36 UTC ---
Fixed.


[Bug rtl-optimization/42835] Missed merging common code sequence at the end of two basic blocks

2010-07-02 Thread bernds at gcc dot gnu dot org


--- Comment #4 from bernds at gcc dot gnu dot org  2010-07-02 16:23 ---
Subject: Bug 42835

Author: bernds
Date: Fri Jul  2 16:22:33 2010
New Revision: 161725

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=161725
Log:
PR target/42835
* config/arm/arm-modes.def (CC_NOTB): New mode.
* config/arm/arm.c (get_arm_condition_code): Handle it.
* config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
* config/arm/arm.md (subsi3_compare0_c): New pattern.
(compare_scc): Now a define_and_split.  Add a number of extra
splitters before it.

testsuite/
PR target/42835
* gcc.target/arm/pr42835.c: New test.


Added:
trunk/gcc/testsuite/gcc.target/arm/pr42835.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/arm/arm-modes.def
trunk/gcc/config/arm/arm.c
trunk/gcc/config/arm/arm.md
trunk/gcc/config/arm/thumb2.md
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42835



[Bug rtl-optimization/42835] Missed merging common code sequence at the end of two basic blocks

2010-02-08 Thread steven at gcc dot gnu dot org


--- Comment #2 from steven at gcc dot gnu dot org  2010-02-08 12:14 ---
Richard, can we split thumb2_compare_scc? If so, when/how would you do this?
(I'm thinking of a post-RA splitter, but perhaps it could be done earlier.)


-- 

steven at gcc dot gnu dot org changed:

   What|Removed |Added

 CC||rearnsha at gcc dot gnu dot
   ||org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42835



[Bug rtl-optimization/42835] Missed merging common code sequence at the end of two basic blocks

2010-02-08 Thread rearnsha at gcc dot gnu dot org


--- Comment #3 from rearnsha at gcc dot gnu dot org  2010-02-08 16:50 
---
Best to do it post RA, so that we can issue the best sequences of insns.  I
have some better sequences that could be generated for Thumb2 which would avoid
the need for an IT instruction in many cases.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42835



[Bug rtl-optimization/42835] Missed merging common code sequence at the end of two basic blocks

2010-01-22 Thread rguenth at gcc dot gnu dot org


--- Comment #1 from rguenth at gcc dot gnu dot org  2010-01-22 11:23 ---
Probably a missed cross-jumping opportunity


-- 

rguenth at gcc dot gnu dot org changed:

   What|Removed |Added

   Severity|normal  |enhancement
  Component|target  |rtl-optimization
   Keywords||missed-optimization


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42835