gimple-ssa-isolate-paths.c (check_loadstore): New function.
commit6ab7a3d7c4ca285806bdcab129378dce88d0a110
authorJeff Law <law@redhat.com>
Tue, 12 Nov 2013 16:41:51 +0000 (12 09:41 -0700)
committerJeff Law <law@gcc.gnu.org>
Tue, 12 Nov 2013 16:41:51 +0000 (12 09:41 -0700)
tree312c513cff532b2a7e8690bb06a23517aa6f588e
parenteb4b92c13be5ec67ca43b701da932835bdd1e4b7
gimple-ssa-isolate-paths.c (check_loadstore): New function.

* gimple-ssa-isolate-paths.c (check_loadstore): New function.
(insert_trap_and_remove_trailing_statements): New argument OP which
is the NULL pointer.  Emit the trap after the load/store through
the NULL pointer.  Simplify the RHS of a store through a NULL pointer
when trivial to do so.
(isolate_path): Corresponding changes.
(gimple_ssa_isolate_erroneous_path): Likewise.

* gcc.dg/tree-ssa/isolate-1.c: Update expected output.
* gcc.dg/tree-ssa/isolate-5.c: New test.

From-SVN: r204708
gcc/ChangeLog
gcc/gimple-ssa-isolate-paths.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/isolate-1.c
gcc/testsuite/gcc.dg/tree-ssa/isolate-5.c [copied from gcc/testsuite/gcc.dg/tree-ssa/isolate-1.c with 85% similarity]