Skip to content
  1. Jun 04, 2021
  2. Jun 03, 2021
  3. Jun 02, 2021
  4. Jun 01, 2021
    • Chris Lattner's avatar
      [Dominators] Rewrite the dominator implementation for efficiency. NFC. · 412ae15d
      Chris Lattner authored
      The previous impl densely scanned the entire region starting with an op
      when dominators were created, creating a DominatorTree for every region.
      
      This is extremely expensive up front -- particularly for clients like
      Linalg/Transforms/Fusion.cpp that construct DominanceInfo for a single
      query.  It is also extremely memory wasteful for IRs that use single
      block regions commonly (e.g. affine.for) because it's making a
      dominator tree for a region that has trivial dominance.  The
      implementation also had numerous unnecessary minor efficiencies, e.g.
      doing multiple walks of the region tree or tryGetBlocksInSameRegion
      building a DenseMap that it didn't need.
      
      This patch switches to an approach where [Post]DominanceInfo is free
      to construct, and which lazily constructs DominatorTree's for any
      multiblock regions that it needs.  This avoids the up-front cost
      entirely, making its runtime proportional to the complexity of the
      region tree instead of # ops in a region.  This also avoids the memory
      and time cost of creating DominatorTree's for single block regions.
      
      Finally this rewrites the implementation for simplicity and to avoids
      the constant factor problems the old implementation had.
      
      Differential Revision: https://reviews.llvm.org/D103384
      412ae15d
    • Rob Suderman's avatar
      [mlir] Updated depthwise conv to support kernel dilation · 422c7036
      Rob Suderman authored
      Depthwise convolution should support kernel dilation and non-dilation should
      not be a special case. Updated op definition to include a dilation attribute.
      
      This also adds a tosa.depthwise_conv2d lowering to linalg to support the new
      linalg behavior.
      
      Differential Revision: https://reviews.llvm.org/D103219
      422c7036
    • Nikita Popov's avatar
      [MLIR] Add missing APSInt.h include · bd0a9880
      Nikita Popov authored
      Since fd7e309e this is no longer
      pulled in indirectly through DenseMapInfo.h.
      bd0a9880
    • Tres Popp's avatar
      [mlir] Use interfaces in MathToLibm · 1ebf7ce9
      Tres Popp authored
      Previously, this assumed use of ModuleOp and FuncOp. There is no need to
      restrict this, and using interfaces allows these patterns to be used
      during dialect conversion to LLVM.
      
      Some assertions were removed due to inconsistent implementation of
      FunctionLikeOps.
      
      Differential Revision: https://reviews.llvm.org/D103447
      1ebf7ce9
    • Tobias Gysi's avatar
      [mlir][linalg] Fix signed/unsigned comparison warnings (NFC). · 07576cc4
      Tobias Gysi authored
      Fix signedness warnings in Utils.cpp and LinalgInterfaces.cpp.
      07576cc4
Loading