Avoid recomputing the defining predicate chains for the same PHI
authorPatrick Palka <ppalka@gcc.gnu.org>
Mon, 3 Aug 2015 14:57:25 +0000 (14:57 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Mon, 3 Aug 2015 14:57:25 +0000 (14:57 +0000)
commitc0503346d8793aa6cdb22c49cb8c2fe369ab5c4a
tree91f694eff78dad53d822c6893502e6f96cbcb803
parent420a9d9bd81efc3aaba61ea8e93a719cc78b2960
Avoid recomputing the defining predicate chains for the same PHI

gcc/ChangeLog:

* tree-ssa-uninit.c (find_uninit_use): Declare and pass to
is_use_properly_guarded the variable def_preds.  Free its
contents before returning.
(prune_uninit_phi_opnds_in_unrealizable_paths): Same.
(is_use_properly_guarded): Replace local variable def_preds with
a parameter.  Adjust accordingly.  Only update *def_preds if it's
the empty vector.

From-SVN: r226511
gcc/ChangeLog
gcc/tree-ssa-uninit.c