1. Aug 24, 2022
    • Che-Yu Wu's avatar
      [MLIR]Extend vector.gather to support n-D result · 0cbfd6fd
      Che-Yu Wu authored
      Currently vector.gather only supports reading memory into a 1-D result vector.
      This patch extends it to support an n-D result vector with the indices, masks,
      and passthroughs in n-D vectors.
      
      As we are trying to vectorize tensor.extract with vector.gather
      (https://github.com/iree-org/iree/issues/9198), it will need to gather the
      elements into an n-D vector. Having vector.gather with n-D results allows us
      to avoid flatten and reshape at the vectorization stage. The backends can then
      decide the optimal ways to lower the vector.gather op.
      
      Note that this is different from n-D gathering, which is about reading n-D
      memory with the n-D indices. The indices here are still only 1-D offsets on
      the base.
      
      Reviewed By: dcaballe
      
      Differential Revision: https://reviews.llvm.org/D131905
      0cbfd6fd
    • Balazs Benics's avatar
      [analyzer] Drop deprecated flags · 6ca17b58
      Balazs Benics authored
      As proposed in D126215 (ffe7950e),
      I'm dropping the `-analyzer-store` and
      `-analyzer-opt-analyze-nested-blocks` clang frontend flags.
      I'm also dropping the corresponding commandline handlers of `scanbuild`.
      
      This behavior is planned to be part of `clang-16`.
      
      Reviewed By: xazax.hun
      
      Differential Revision: https://reviews.llvm.org/D132289
      6ca17b58
    • Fred Tingaud's avatar
      [analyzer] Deadstore static analysis: Fix false positive on C++17 assignments · 16cb3be6
      Fred Tingaud authored
      Dead store detection automatically checks that an expression is a
      CXXConstructor and skips it because of potential side effects. In C++17,
      with guaranteed copy elision, this check can fail because we actually
      receive the implicit cast of a CXXConstructor.
      Most checks in the dead store analysis were already stripping all casts
      and parenthesis and those that weren't were either forgotten (like the
      constructor) or would not suffer from it, so this patch proposes to
      factorize the stripping.
      It has an impact on where the dead store warning is reported in the case
      of an explicit cast, from
      
        auto a = static_cast<B>(A());
                 ^~~~~~~~~~~~~~~~~~~
      
      to
      
        auto a = static_cast<B>(A());
                                ^~~
      
      which we think is an improvement.
      
      Patch By: frederic-tingaud-sonarsource
      
      Reviewed By: steakhal
      
      Differential Revision: https://reviews.llvm.org/D126534
      16cb3be6
    • Kadir Cetinkaya's avatar
      [clangd] Bump timeout for a flaky test · 552b59b9
      Kadir Cetinkaya authored
      This has been failing on some build bots with timeout, increasing it to
      5 seconds.
      552b59b9
    • Thomas Symalla's avatar
      [NFC][AMDGPU] Some cleanups in the SIOptimizeExecMasking pass. · 5ee0fb7e
      Thomas Symalla authored
      Fix typos and remove an unused argument.
      
      Reviewed By: foad
      
      Differential Revision: https://reviews.llvm.org/D132292
      5ee0fb7e
  2. Aug 23, 2022