Re: [PATCH] Fix compare-elim.c ICE (PR rtl-optimization/82913)

2017-11-09 Thread Eric Botcazou
> Anyway, this patch doesn't do those smarts, just restores previous behavior. > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > > 2017-11-09 Jakub Jelinek > > PR rtl-optimization/82913 > * compare-elim.c (try_merge_compare): Punt if def_insn is not > s

[PATCH] Fix compare-elim.c ICE (PR rtl-optimization/82913)

2017-11-09 Thread Jakub Jelinek
Hi! My recent changes to compare-elim.c introduced ICE on the following testcase. When computing cmp->in_a_setter, I've made sure it is single_set and therefore I've left the if (!set) return false; stuff out. That usually works, but doesn't if an earlier try_eliminate_compare or try_merge_compare