This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Tree tail merging breaks __builtin_unreachable optimization
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: Tom_deVries at mentor dot com (Tom de Vries)
- Cc: richard dot guenther at gmail dot com (Richard Guenther), matz at suse dot de (Michael Matz), gcc-patches at gcc dot gnu dot org, tom at codesourcery dot com, pinskia at gmail dot com (Andrew Pinski), stevenb dot gcc at gmail dot com (Steven Bosscher)
- Date: Mon, 9 Jul 2012 22:36:03 +0200 (CEST)
- Subject: Re: Tree tail merging breaks __builtin_unreachable optimization
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