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:
Vladimir Kozlov 2008-02-29 09:57:18 -08:00
parent 9a4ccf8a06
commit c223fed084
5 changed files with 19 additions and 6 deletions

View file

@ -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);