8356780: PhaseMacroExpand::_has_locks is unused
Reviewed-by: mhaessig, chagedorn, kvn, mchevalier
This commit is contained in:
parent
ca7b885873
commit
7c9c8ba363
@ -2407,7 +2407,6 @@ void PhaseMacroExpand::eliminate_macro_nodes() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Next, attempt to eliminate allocations
|
// Next, attempt to eliminate allocations
|
||||||
_has_locks = false;
|
|
||||||
progress = true;
|
progress = true;
|
||||||
while (progress) {
|
while (progress) {
|
||||||
progress = false;
|
progress = false;
|
||||||
@ -2431,7 +2430,6 @@ void PhaseMacroExpand::eliminate_macro_nodes() {
|
|||||||
case Node::Class_Lock:
|
case Node::Class_Lock:
|
||||||
case Node::Class_Unlock:
|
case Node::Class_Unlock:
|
||||||
assert(!n->as_AbstractLock()->is_eliminated(), "sanity");
|
assert(!n->as_AbstractLock()->is_eliminated(), "sanity");
|
||||||
_has_locks = true;
|
|
||||||
break;
|
break;
|
||||||
case Node::Class_ArrayCopy:
|
case Node::Class_ArrayCopy:
|
||||||
break;
|
break;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -83,9 +83,6 @@ private:
|
|||||||
// projections extracted from a call node
|
// projections extracted from a call node
|
||||||
CallProjections _callprojs;
|
CallProjections _callprojs;
|
||||||
|
|
||||||
// Additional data collected during macro expansion
|
|
||||||
bool _has_locks;
|
|
||||||
|
|
||||||
void expand_allocate(AllocateNode *alloc);
|
void expand_allocate(AllocateNode *alloc);
|
||||||
void expand_allocate_array(AllocateArrayNode *alloc);
|
void expand_allocate_array(AllocateArrayNode *alloc);
|
||||||
void expand_allocate_common(AllocateNode* alloc,
|
void expand_allocate_common(AllocateNode* alloc,
|
||||||
@ -199,7 +196,7 @@ private:
|
|||||||
Node* make_arraycopy_load(ArrayCopyNode* ac, intptr_t offset, Node* ctl, Node* mem, BasicType ft, const Type *ftype, AllocateNode *alloc);
|
Node* make_arraycopy_load(ArrayCopyNode* ac, intptr_t offset, Node* ctl, Node* mem, BasicType ft, const Type *ftype, AllocateNode *alloc);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PhaseMacroExpand(PhaseIterGVN &igvn) : Phase(Macro_Expand), _igvn(igvn), _has_locks(false) {
|
PhaseMacroExpand(PhaseIterGVN &igvn) : Phase(Macro_Expand), _igvn(igvn) {
|
||||||
_igvn.set_delay_transform(true);
|
_igvn.set_delay_transform(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user