@@ -439,18 +439,11 @@ class CmpLTMaskNode : public Node {
439
439
virtual uint ideal_reg () const { return Op_RegI; }
440
440
};
441
441
442
- // ------------------------------InvolutionNode----------------------------------
443
- // Represents a self-inverse operation, i.e., op(op(x)) = x for any x
444
- class InvolutionNode : public Node {
445
- public:
446
- InvolutionNode (Node* in) : Node(nullptr , in) {}
447
- virtual Node* Identity (PhaseGVN* phase);
448
- };
449
442
450
443
// ------------------------------NegNode----------------------------------------
451
- class NegNode : public InvolutionNode {
444
+ class NegNode : public Node {
452
445
public:
453
- NegNode (Node* in1) : InvolutionNode( in1) {
446
+ NegNode (Node* in1) : Node( nullptr , in1) {
454
447
init_class_id (Class_Neg);
455
448
}
456
449
};
@@ -562,18 +555,16 @@ class SqrtHFNode : public Node {
562
555
};
563
556
564
557
565
- class ReverseBytesNode : public InvolutionNode {
558
+ class ReverseBytesNode : public Node {
566
559
public:
567
- ReverseBytesNode (Node* in) : InvolutionNode( in) {}
560
+ ReverseBytesNode (Node* in) : Node( nullptr , in) {}
568
561
virtual const Type* Value (PhaseGVN* phase) const ;
569
562
};
570
563
// -------------------------------ReverseBytesINode--------------------------------
571
564
// reverse bytes of an integer
572
565
class ReverseBytesINode : public ReverseBytesNode {
573
566
public:
574
- ReverseBytesINode (Node* in) : ReverseBytesNode(in) {
575
- }
576
-
567
+ ReverseBytesINode (Node* in) : ReverseBytesNode(in) {}
577
568
virtual int Opcode () const ;
578
569
const Type* bottom_type () const { return TypeInt::INT; }
579
570
virtual uint ideal_reg () const { return Op_RegI; }
@@ -611,23 +602,25 @@ class ReverseBytesSNode : public ReverseBytesNode {
611
602
612
603
// -------------------------------ReverseINode--------------------------------
613
604
// reverse bits of an int
614
- class ReverseINode : public InvolutionNode {
605
+ class ReverseINode : public Node {
615
606
public:
616
- ReverseINode (Node* in) : InvolutionNode( in) {}
607
+ ReverseINode (Node* in) : Node( nullptr , in) {}
617
608
virtual int Opcode () const ;
618
609
const Type* bottom_type () const { return TypeInt::INT; }
619
610
virtual uint ideal_reg () const { return Op_RegI; }
611
+ virtual Node* Identity (PhaseGVN* phase);
620
612
virtual const Type* Value (PhaseGVN* phase) const ;
621
613
};
622
614
623
615
// -------------------------------ReverseLNode--------------------------------
624
616
// reverse bits of a long
625
- class ReverseLNode : public InvolutionNode {
617
+ class ReverseLNode : public Node {
626
618
public:
627
- ReverseLNode (Node* in) : InvolutionNode( in) {}
619
+ ReverseLNode (Node* in) : Node( nullptr , in) {}
628
620
virtual int Opcode () const ;
629
621
const Type* bottom_type () const { return TypeLong::LONG; }
630
622
virtual uint ideal_reg () const { return Op_RegL; }
623
+ virtual Node* Identity (PhaseGVN* phase);
631
624
virtual const Type* Value (PhaseGVN* phase) const ;
632
625
};
633
626
0 commit comments