1. Apr 22, 2019
  2. Apr 21, 2019
    • Nikita Popov's avatar
      [ConstantRange] Add saturating add/sub methods · 198ab601
      Nikita Popov authored
      Add support for uadd_sat and friends to ConstantRange, so we can
      handle uadd.sat and friends in LVI. The implementation is forwarding
      to the corresponding APInt methods with appropriate bounds.
      
      One thing worth pointing out here is that the handling of wrapping
      ranges is not maximally accurate. A simple example is that adding 0
      to a wrapped range will return a full range, rather than the original
      wrapped range. The tests also only check that the non-wrapping
      envelope is correct and minimal.
      
      Differential Revision: https://reviews.llvm.org/D60946
      
      llvm-svn: 358855
      198ab601
    • Nikita Popov's avatar
      [ConstantRange] Add getNonEmpty() constructor · dbc3fbaf
      Nikita Popov authored
      ConstantRanges have an annoying special case: If upper and lower are
      the same, it can be either an empty or a full set. When constructing
      constant ranges nearly always a full set is intended, but this still
      requires an explicit check in many places.
      
      This revision adds a getNonEmpty() constructor that disambiguates this
      case: If upper and lower are the same, a full set is created.
      
      Differential Revision: https://reviews.llvm.org/D60947
      
      llvm-svn: 358854
      dbc3fbaf
    • Sanjay Patel's avatar
      [AArch64] add tests with multiple binop+splat vals; NFC · 7fa3a0ee
      Sanjay Patel authored
      See D60890 for context.
      
      llvm-svn: 358853
      7fa3a0ee