This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

optimization/7269: Inlining may not eliminate unnecessary tests and branches.


>Number:         7269
>Category:       optimization
>Synopsis:       Inlining may not eliminate unnecessary tests and branches.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          pessimizes-code
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 10 22:36:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andy Freeman
>Release:        gcc 3.1
>Organization:
>Environment:
Redhat 7.3
>Description:
Inlined procedures may have unnnecessary tests and branches.

Using built-in specs.
Configured with: ../gcc-3.1/configure 
Thread model: single
gcc version 3.1
>How-To-Repeat:
The -S -O3 output has a branch to a compare&branch whose behavior is invariant.  The "je .L4" should/can be "je .L1".
>Fix:
Better constant value propagation
>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]