I noticed we keep the VF != 0 check in the CFG for quite some passes when looking at PR80844 so the following fixes that.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2017-05-26 Richard Biener <rguent...@suse.de> PR tree-optimization/80844 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results. Index: gcc/tree-vectorizer.c =================================================================== --- gcc/tree-vectorizer.c (revision 248409) +++ gcc/tree-vectorizer.c (working copy) @@ -229,8 +229,11 @@ adjust_simduid_builtins (hash_table<simd default: gcc_unreachable (); } - update_call_from_tree (&i, t); - gsi_next (&i); + tree lhs = gimple_call_lhs (stmt); + if (lhs) + replace_uses_by (lhs, t); + release_defs (stmt); + gsi_remove (&i, true); } } }