summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortejohnson <tejohnson@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-15 21:21:32 +0000
committertejohnson <tejohnson@138bc75d-0d04-0410-961f-82ee72b054a4>2014-01-15 21:21:32 +0000
commitd1a94241c5ce7165b1b29aca2e410f6f9bfe9756 (patch)
tree93b29d1894898d695cb03a8c27f9702c3862ff6c
parent36e33c6a8d8fd399548cc9eff948546a7d88aa42 (diff)
downloadgcc-d1a94241c5ce7165b1b29aca2e410f6f9bfe9756.tar.gz
2014-01-15 Teresa Johnson <tejohnson@google.com>
* tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206646 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-ssa-sccvn.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c3ff69ef71f..c93bf23f2a9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2014-01-15 Teresa Johnson <tejohnson@google.com>
+
+ * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
+
2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
* config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index 65b8ce6b97b..f7ec8b6d60b 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -2792,7 +2792,7 @@ visit_reference_op_call (tree lhs, gimple stmt)
if (vnresult)
{
- if (vnresult->result_vdef)
+ if (vnresult->result_vdef && vdef)
changed |= set_ssa_val_to (vdef, vnresult->result_vdef);
if (!vnresult->result && lhs)