This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
optimization/7269: Inlining may not eliminate unnecessary tests and branches.
- From: anamax at earthlink dot net
- To: gcc-gnats at gcc dot gnu dot org
- Date: 11 Jul 2002 05:31:16 -0000
- Subject: optimization/7269: Inlining may not eliminate unnecessary tests and branches.
- Reply-to: anamax at earthlink dot net
>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: