C2: optimize (x << 2) & -4 to x (and similar patterns) -> KnownBits for LShift

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 18
    • Component/s: hotspot

      This came up in the review of 8277850: C2 (optimize mask checks in counted loops). See this comment:

      https://github.com/openjdk/jdk/pull/6697#pullrequestreview-827071366

            Assignee:
            Unassigned
            Reporter:
            Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: