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

@ -91,6 +91,7 @@ class Node_List;
class Node_Stack;
class NullCheckNode;
class OopMap;
class ParmNode;
class PCTableNode;
class PhaseCCP;
class PhaseGVN;
@ -557,6 +558,7 @@ public:
DEFINE_CLASS_ID(JumpProj, Proj, 1)
DEFINE_CLASS_ID(IfTrue, Proj, 2)
DEFINE_CLASS_ID(IfFalse, Proj, 3)
DEFINE_CLASS_ID(Parm, Proj, 4)
DEFINE_CLASS_ID(Region, Node, 3)
DEFINE_CLASS_ID(Loop, Region, 0)
@ -712,6 +714,7 @@ public:
DEFINE_CLASS_QUERY(Mul)
DEFINE_CLASS_QUERY(Multi)
DEFINE_CLASS_QUERY(MultiBranch)
DEFINE_CLASS_QUERY(Parm)
DEFINE_CLASS_QUERY(PCTable)
DEFINE_CLASS_QUERY(Phi)
DEFINE_CLASS_QUERY(Proj)