Testing the following.
Richard. 2019-07-30 Richard Biener <rguent...@suse.de> PR tree-optimization/91291 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore constant values. Index: gcc/tree-ssa-sccvn.c =================================================================== --- gcc/tree-ssa-sccvn.c (revision 273896) +++ gcc/tree-ssa-sccvn.c (working copy) @@ -6253,7 +6345,8 @@ void rpo_elim::eliminate_push_avail (basic_block bb, tree leader) { tree valnum = VN_INFO (leader)->valnum; - if (valnum == VN_TOP) + if (valnum == VN_TOP + || is_gimple_min_invariant (valnum)) return; if (dump_file && (dump_flags & TDF_DETAILS)) {