This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix tree-opt/35431 ICE with complex integer, invalid gimple


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.
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]