------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-04 18:43 ------- Reduced testcase: enum eumtype { ENUM1, ENUM2 }; void g(const eumtype kind ); void f(long i); void g(const eumtype kind) { if ((kind != ENUM1) && (kind != ENUM2)) f(kind); }
--- the tree before VRP: void g(eumtype) (kind) { long int kind.0; <bb 0>: if (kind_1 > 1) goto <L0>; else goto <L1>; <L0>:; kind.0_2 = (long int) kind_1; f (kind.0_2); <L1>:; return; } -- What |Removed |Added ---------------------------------------------------------------------------- CC| |phython at gcc dot gnu dot | |org, dnovillo at gcc dot gnu | |dot org Last reconfirmed|2005-08-04 18:31:51 |2005-08-04 18:43:23 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23046