mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
6667580: Optimize CmpP for allocations
CmpP could be optimized out if it compares new allocated objects. Reviewed-by: jrose, never, rasbold
This commit is contained in:
parent
9a4ccf8a06
commit
c223fed084
5 changed files with 19 additions and 6 deletions
|
@ -60,13 +60,13 @@ protected:
|
|||
debug_only(_adr_type=at; adr_type();)
|
||||
}
|
||||
|
||||
public:
|
||||
// Helpers for the optimizer. Documented in memnode.cpp.
|
||||
static bool detect_ptr_independence(Node* p1, AllocateNode* a1,
|
||||
Node* p2, AllocateNode* a2,
|
||||
PhaseTransform* phase);
|
||||
static bool adr_phi_is_loop_invariant(Node* adr_phi, Node* cast);
|
||||
|
||||
public:
|
||||
// This one should probably be a phase-specific function:
|
||||
static bool detect_dominating_control(Node* dom, Node* sub);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue