C2: investigate intrinsification of Preconditions.checkFromToIndex() and Preconditions.checkFromIndexSize()

XMLWordPrintable

      Preconditions.checkIndex() is intrinsified so C2 recognizes it as a range check and optimizes it accordingly. It's not the case of checkFromToIndex() and checkFromIndexSize(). Should they be intrinsified so range check elimination also applies to them?

            Assignee:
            Kangcheng Xu
            Reporter:
            Roland Westrelin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: