When I factored out the code in can_handle_load, I had a small typo
which seemed to work for most cases but I had noticed later on was
broken. Basically the bb where the vop definition has to be dominated
by the current bb (and can't be the current bb).
Pushed as obvious afte a quick bootstrapped.
PR tree-optimization/125067
gcc/ChangeLog:
* tree-ssa-phiprop.cc (can_handle_load): Fix copy and pasto
on dominated_by_p.
Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
if (SSA_NAME_IS_DEFAULT_DEF (vuse))
return true;
if (gimple_bb (def_stmt) != bb
- && !dominated_by_p (CDI_DOMINATORS,
- bb, gimple_bb (def_stmt)))
+ && dominated_by_p (CDI_DOMINATORS,
+ bb, gimple_bb (def_stmt)))
return true;
return false;
}