mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-02 19:20:19 +00:00
6879921: CTW failure jdk6_18/hotspot/src/share/vm/utilities/globalDefinitions.cpp:268
Filter out non-primitives before deciding whether two ops can be packed Reviewed-by: kvn, never
This commit is contained in:
parent
243514d483
commit
1cf5b7ae11
@ -473,6 +473,12 @@ void SuperWord::mem_slice_preds(Node* start, Node* stop, GrowableArray<Node*> &p
|
||||
// Can s1 and s2 be in a pack with s1 immediately preceding s2 and
|
||||
// s1 aligned at "align"
|
||||
bool SuperWord::stmts_can_pack(Node* s1, Node* s2, int align) {
|
||||
|
||||
// Do not use superword for non-primitives
|
||||
if((s1->is_Mem() && !is_java_primitive(s1->as_Mem()->memory_type())) ||
|
||||
(s2->is_Mem() && !is_java_primitive(s2->as_Mem()->memory_type())))
|
||||
return false;
|
||||
|
||||
if (isomorphic(s1, s2)) {
|
||||
if (independent(s1, s2)) {
|
||||
if (!exists_at(s1, 0) && !exists_at(s2, 1)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user