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

when matching a memory node the adr_type should not change

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • hs14
    • hs14
    • hotspot
    • b01
    • x86
    • solaris_10

    Backports

      Description

        >> Tom Rodriguez wrote:
        >>> Here's a side question: when matching a memory node we should expect
        >>> that the adr_type doesn't change. Is there an obvious place to put
        >>> an assert about that during matching? It's complicated because of
        >>> matches with multiple nodes but it would be nice to catch these
        >>> problems immediately.
        >
        > Vladimir Kozlov wrote:
        >> So you want to add an additional adr_type field to all memory mach nodes
        >> during matching and then compare in assert the result of MachNode::adr_type()
        >> and this field. Is is correct? I will file a bug to investigate it.
        >
        Tom Rodriguez wrote:
        > Actually that's a good idea too. Regular memnodes do something like
        > that right now I think to check that the adr_type doesn't change over
        > time. I was just thinking that we should verify that the adr_type of
        > the ideal node matches the adr_type of the machnode that is produced for
        > it at match time. Basically the adr_type shouldn't change from the time
        > the ideal memory operation is constructed to the time we emit assembly
        > for it. We'd have caught this pretty early if we had these checks in
        > place.

        Attachments

          Issue Links

            Activity

              People

                kvn Vladimir Kozlov
                kvn Vladimir Kozlov
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: