< prev index next >

src/hotspot/share/opto/subnode.hpp

Print this page
*** 138,11 ***
--- 138,15 ---
      init_class_id(Class_Cmp);
    }
    virtual Node* Identity(PhaseGVN* phase);
    const Type *add_id() const { return TypeInt::ZERO; }
    const Type *bottom_type() const { return TypeInt::CC; }
+ #ifdef RISCV
+   virtual uint ideal_reg() const { return Op_RegI; }
+ #else
    virtual uint ideal_reg() const { return Op_RegFlags; }
+ #endif
  
    static CmpNode *make(Node *in1, Node *in2, BasicType bt, bool unsigned_comp = false);
  
  #ifndef PRODUCT
    // CmpNode and subclasses include all data inputs (until hitting a control
< prev index next >