https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40635
--- Comment #20 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note one thing I Noticed is the with the testcase in comment #0 to reproduce the PHI-OPT issue I need to use the following options: "-O2 -Wall -g0 -fdisable-tree-threadfull1". jump threading actually is able to happen but then nothing is able to move the call to foo to common code again.