changeset 5108:4cf0cf96701d

8041351: Crash in src/share/vm/opto/loopnode.cpp:3215 - assert(! had_error) failed: bad dominance Summary: add missing is_mem() check when we collect load nodes in SuperWord::co_locate_pack(). Reviewed-by: iveresov, kvn
author sgabdura
date Fri, 25 Apr 2014 10:00:38 +0200
parents 3a2cedafb805
children 8f307c808d96
files src/share/vm/opto/superword.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/superword.cpp	Fri Apr 18 08:11:07 2014 +0200
+++ b/src/share/vm/opto/superword.cpp	Fri Apr 25 10:00:38 2014 +0200
@@ -1262,8 +1262,9 @@
     memops.clear();
     for (DUIterator i = upper_insert_pt->outs(); upper_insert_pt->has_out(i); i++) {
       Node* use = upper_insert_pt->out(i);
-      if (!use->is_Store())
+      if (use->is_Mem() && !use->is_Store()) {
         memops.push(use);
+      }
     }
 
     MemNode* lower_insert_pt = last;