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: unassig...@gcc.gnu.org ReportedBy: paulo.ma...@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.