[Bug middle-end/53347] New: Duplicated redundant condition in compare-elim.c
Paulo.Matos at csr dot com
gcc-bugzilla@gcc.gnu.org
Mon May 14 15:48:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53347
Bug #: 53347
Summary: Duplicated redundant condition in compare-elim.c
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: trivial
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: Paulo.Matos@csr.com
There's a duplicated redundant condition in compare-elim.c, line 148:
if (REG_P (XEXP (src, 0))
&& REG_P (XEXP (src, 0))
&& (REG_P (XEXP (src, 1)) || CONSTANT_P (XEXP (src, 1))))
return src;
This can be simplified:
if (REG_P (XEXP (src, 0))
&& (REG_P (XEXP (src, 1)) || CONSTANT_P (XEXP (src, 1))))
return src;
I think care must be taken to ensure that this is indeed duplicated and that
the developer didn't intend to write something else instead.
More information about the Gcc-bugs
mailing list