[PATCH] Fix tree-opt/35431 ICE with complex integer, invalid gimple
Richard Guenther
richard.guenther@gmail.com
Mon Mar 31 10:56:00 GMT 2008
On Mon, Mar 31, 2008 at 6:27 AM, Andrew Pinski <pinskia@gmail.com> wrote:
> Hi,
> The issue here is that PHI-opt will produce invalid gimple for
> complex integeral types. I could not figure out an easy way to
> produce valid gimple for them, so I decided that rejecting would be
> the best option, since later on we will split apart the complex type
> and also complex integeral types are rare so we are not losing that
> much optimizations really.
>
> OK? Bootstrapped and tested on i686-linux-gnu with no regressions.
Ok. Another case of integer_zerop returning true for complex is weird...
Richard.
> Thanks,
> Andrew Pinski
>
> ChangeLog:
> * tree-ssa-phiopt.c (conditional_replacement): Return early for complex types.
>
> * gcc.c-torture/compile/pr35431.c: New testcase.
>
More information about the Gcc-patches
mailing list