Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6560812

"must set_type before use" bug in mulnode.cpp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0u9
    • hotspot
    • None
    • generic
    • generic

      There is a bug in mulnode.cpp. need set_type before use in mulnode.cpp.

      ========= hotspot/src/share/vm/opto/mulnode.cpp#3 (text) ====
      @@ -100,6 +100,7 @@
               // Convert (X+con1)*con0 into X*con0
                 Node *mul = clone(); // mul = ()*con0
                 mul->set_req(1,add1->in(1)); // mul = X*con0
      + phase->set_type(mul,bottom_type());
                 mul = phase->transform(mul);
                 Node *add2 = add1->clone();

            Unassigned Unassigned
            mmma Marvin Ma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: