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

Andrew Pinski pinskia@gmail.com
Mon Mar 31 08:22:00 GMT 2008


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.

Thanks,
Andrew Pinski

ChangeLog:
* tree-ssa-phiopt.c (conditional_replacement): Return early for complex types.

* gcc.c-torture/compile/pr35431.c: New testcase.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fixpr35431.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080331/c7493f8e/attachment.txt>


More information about the Gcc-patches mailing list