[Bug optimization/14731] New: [tree-ssa] missed jump threading on the tree level

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 25 06:51:00 GMT 2004


Some more missed jump threading on the tree level.
#ifdef __cplusplus
#define _Bool bool
#endif

int link_error(void);
int s(void);

int t(int i)
{
  _Bool g = i == 4;
 int h = g;
 _Bool j = h;
 int k = j;
 _Bool l = k == 0;
 _Bool o = !l;
 int m = o;

 if (m)
  if (i != 4)
   return link_error();
 return 0;
}

-- 
           Summary: [tree-ssa] missed jump threading on the tree level
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: pessimizes-code
          Severity: enhancement
          Priority: P2
         Component: optimization
        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,law at gcc dot gnu dot
                    org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14731



More information about the Gcc-bugs mailing list