https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68381

--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Tue Nov 24 06:43:20 2015
New Revision: 230786

URL: https://gcc.gnu.org/viewcvs?rev=230786&root=gcc&view=rev
Log:
combine: Handle aborts in is_parallel_of_n_reg_sets (PR68381)

Some users of is_parallel_of_n_reg_sets disregard the clobbers in a
parallel after it has returned "yes, this is a parallel of N sets and
maybe some clobbers".  But combine uses a clobber of const0_rtx to
indicate substitution failure, so this leads to disaster.

Fix this by checking for such special clobbers in is_parallel_of_n_reg_sets.


        PR rtl-optimization/68381
        * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
        is poisoned.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/combine.c

Reply via email to