This is the mail archive of the gcc-bugs@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/5244: Dead code in simplify_logical()



>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:


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