This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23606] New: fold does not fold (type)(a == b) into a == b (with type as the type)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Aug 2005 23:03:43 -0000
- Subject: [Bug middle-end/23606] New: fold does not fold (type)(a == b) into a == b (with type as the type)
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I don't have a testcase for this one as convert already does it though with my tree combiner (or when
TER folds), you can reproduce it with:
int f(int i, int j)
{
_Bool a = i == j;
int t = a;
return t;
}
--
Summary: fold does not fold (type)(a == b) into a == b (with type
as the type)
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23606