tree-ssa-dom.c (hashable_expr_equal_p): Also compare the EH region of calls to pure...
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 20 May 2014 17:01:35 +0000 (17:01 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 20 May 2014 17:01:35 +0000 (17:01 +0000)
commit7eab31edf283c355051f1f58bc79ea13a0bdb3fd
treeea01704fc2a9e703217c6f711a0256643c25e1aa
parent467fc67c47287a490d649ffe03ce8ae432c27a71
tree-ssa-dom.c (hashable_expr_equal_p): Also compare the EH region of calls to pure functions that can throw an exception.

* tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
EH region of calls to pure functions that can throw an exception.
* tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
(copy_reference_ops_from_call): Also copy the EH region of the call if
it can throw an exception.

From-SVN: r210649
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/opt35.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt35_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt35_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt36.adb [new file with mode: 0644]
gcc/tree-ssa-dom.c
gcc/tree-ssa-sccvn.c