Tree tail merging breaks __builtin_unreachable optimization
Ulrich Weigand
uweigand@de.ibm.com
Mon Jul 9 20:36:00 GMT 2012
Tom de Vries wrote:
> 2012-07-06 Tom de Vries <tom@codesourcery.com>
> Richard Guenther <rguenther@suse.de>
>
> * tree-ssa-ccp.c (optimize_unreachable): New function.
> (execute_fold_all_builtins): Use optimize_unreachable to optimize
> BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
>
> * gcc.dg/builtin-unreachable-6.c: New test.
> * gcc.dg/builtin-unreachable-5.c: New test.
Many thanks for taking care of this!
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
More information about the Gcc-patches
mailing list