https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54742
--- Comment #38 from Steve Ellcey <sje at gcc dot gnu.org> --- FYI: I am testing a new patch for this that adds a new pass to do this optimization. See https://gcc.gnu.org/ml/gcc-patches/2014-08/msg01228.html