This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
optimization/5244: Dead code in simplify_logical()
- From: Kai dot Tietz at onevision dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 2 Jan 2002 12:54:45 -0000
- Subject: optimization/5244: Dead code in simplify_logical()
- Reply-to: Kai dot Tietz at onevision dot de
>Number: 5244
>Category: optimization
>Synopsis: Dead code in simplify_logical()
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Wed Jan 02 04:56:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: KT
>Release: GCC 3.0.3
>Organization:
>Environment:
Any
>Description:
In file combine.c in function simplify_logical() there some checks at line 5405 ( if (GET_CODE (op1) == IOR || GET_CODE (op1) == XOR))
which prevent to do the following optimizations at the following lines. (Line 5415 and 5422).
>How-To-Repeat:
See code
>Fix:
Just move checks before critical check
>Release-Note:
>Audit-Trail:
>Unformatted: