optimization/7269: Inlining may not eliminate unnecessary tests and branches.
anamax@earthlink.net
anamax@earthlink.net
Wed Jul 10 22:36:00 GMT 2002
>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:
More information about the Gcc-prs
mailing list