1. Jan 11, 2021
  2. Jan 10, 2021
    • Florian Hahn's avatar
      [STLExtras] Use return type from operator* of the wrapped iter. · c701f85c
      Florian Hahn authored
      Currently make_early_inc_range cannot be used with iterators with
      operator* implementations that do not return a reference.
      
      Most notably in the LLVM codebase, this means the User iterator ranges
      cannot be used with make_early_inc_range, which slightly simplifies
      iterating over ranges while elements are removed.
      
      Instead of directly using BaseT::reference as return type of operator*,
      this patch uses decltype to get the actual return type of the operator*
      implementation in WrappedIteratorT.
      
      This patch also updates a few places to use make use of
      make_early_inc_range.
      
      Reviewed By: dblaikie
      
      Differential Revision: https://reviews.llvm.org/D93992
      c701f85c
    • Nico Weber's avatar
      47991a15
    • Nicolas Vasilache's avatar
      [mlir] NFC - Drop spurious assertion on symbols during `promoteComposedSymbolsAsDims` · a9224860
      Nicolas Vasilache authored
      This assertion is an old remnant from earlier days when only affine functions existed.
      It is not the place of affine map composition to check whether orthogonal considerations
      on what is allowed to be a symbol under the AffineScope trait.
      a9224860
    • Juneyoung Lee's avatar
      [CodeGen] Update transformations to use poison for shufflevector/insertelem's initial vector elem · 9f2d9364
      Juneyoung Lee authored
      This patch is a part of D93817 and makes transformations in CodeGen use poison for shufflevector/insertelem's initial vector element.
      
      The change in CodeGenPrepare.cpp is fine because the mask of shufflevector should be always zero.
      It doesn't touch the second element (which is poison).
      
      The change in InterleavedAccessPass.cpp is also fine becauses the mask is of the form <a, a+m, a+2m, .., a+km> where a+km is smaller than
      the size of the first vector operand.
      This is guaranteed by the caller of replaceBinOpShuffles, which is lowerInterleavedLoad.
      It calls isDeInterleaveMask and isDeInterleaveMaskOfFactor to check the mask is the desirable form.
      isDeInterleaveMask has the check that a+km is smaller than the vector size.
      To check my understanding, I added an assertion & added a test to show that this optimization doesn't fire in such case.
      
      Reviewed By: spatel
      
      Differential Revision: https://reviews.llvm.org/D94056
      9f2d9364
    • Fangrui Song's avatar
      [test] Improve weakref & weak_import tests · b41b743d
      Fangrui Song authored
      b41b743d
    • Craig Topper's avatar
      [RISCV] Change ConstraintMask in RISCVII enum to be shifted left. NFC · 6fc7a92e
      Craig Topper authored
      This makes the mask align with the position of the bits in TSFlags
      which is a little more logical.
      
      I might be adding more fields to TSFlags and some might be single
      bits where just ANDing with mask to test the bit would make sense.
      
      While there rename TargetFlags in validateInstruction to reflect
      that it's just the constraint bits.
      6fc7a92e
    • Craig Topper's avatar
      [RISCV] Use uint16_t instead of unsigned for opcodes in the RVV pseudo instruction table. · 59908fc0
      Craig Topper authored
      We currently have about 7000 opcodes in the RISCVGenInstrInfo.inc
      enum. We can use uint16_t to store these values. We would need to
      grow by nearly 9x before we run out of space so this should last
      for a little while.
      
      This reduces the llc binary by 32K.
      59908fc0
    • Nico Weber's avatar
      [lld/mac] remove redundant null check · 1198478c
      Nico Weber authored
      This is already checked two lines up. No behavior change.
      1198478c