1. Feb 06, 2023
    • Stanislav Mekhanoshin's avatar
      [AMDGPU] Fix liveness in the SIOptimizeExecMaskingPreRA.cpp · dd0caa82
      Stanislav Mekhanoshin authored
      If a condition register def happens past the newly created use
      we do not properly update LIS. It has two problems:
      
      1) We do not extend defining segment to the end of its block
         marking it a live-out (this is regression after
         https://reviews.llvm.org/rG09d38dd7704a52e8ad2d5f8f39aaeccf107f4c56)
      
      2) We do not extend use segment to the beginning of the use block
         marking it a live-in.
      
      Fixes: SWDEV-379563
      
      Differential Revision: https://reviews.llvm.org/D143302
      dd0caa82
    • Simon Pilgrim's avatar
      [X86] combineX86ShufflesRecursively - peek through free extract_subvector nodes · f9bf6479
      Simon Pilgrim authored
      If we're shuffling an op that is extracted from the lowest subvector of a larger vector then we should try to peek through as much as possible without exceeding the root size
      
      Another step towards removing the widenSubVector call from combineX86ShufflesRecursively (Issue #45319)
      f9bf6479
    • Simon Pilgrim's avatar
      [SLP] Use allConstant helper. NFCI. · 552e27c5
      Simon Pilgrim authored
      552e27c5
    • Fangrui Song's avatar
      [AArch64] Unconditionally use DW_EH_PE_indirect|DW_EH_PE_pcrel personality/lsda/ttype encodings · ca65969c
      Fangrui Song authored
      For -fno-pic, without DW_EH_PE_indirect, the personality routine pointer in a
      CIE needs an R_AARCH64_ABS64 relocation. In common configurations that
      `__gcc_personality_v0` is defined in a shared object, this will lead to a
      discouraged canonical PLT entry, or, if `ld.lld -z notext` (betwen D122459 and
      D143136), a dynamic R_AARCH64_ABS64 relocation with an incorrect offset:
      https://github.com/llvm/llvm-project/issues/60392
      
      Since GCC uses DW_EH_PE_indirect for -fno-pic code (the behavior hasn't changed
      since the initial port in 2012), let's follow suit by simplifying the code.
      (
      For tiny and small code models, we use DW_EH_PE_sdata8 instead of GCC's
      DW_EH_PE_sdata4. This is a deliberate choice to support personality-.eh_frame
      offset > 2GiB. This is unneeded for small code model since "Max text segment
      size < 2GiB" but making `-fno-pic -mcmodel={tiny,small}` different seems
      unnecessary: the scenarios that uses both -fno-pic and C++ exceptions have been
      increasingly rare now, so there is little advantage optimizing for the little
      size saving with code complexity.
      )
      
      ---
      
      Two clang/test/Interpreter tests would fail without 6747fc07
      ([ORC] Use JITLink as the default linker for LLJIT on Linux/arm64.)
      
      Reviewed By: MatzeB
      
      Differential Revision: https://reviews.llvm.org/D143039
      ca65969c
    • Fangrui Song's avatar
      [Driver] Add -mllvm= as an alias for -mllvm · 90094ab8
      Fangrui Song authored
      Similar to D131455 (-Xclang=). As well as making it convenient for some build
      systems, this allows `-Xarch_device '-mllvm=--inline-threshold=100'` (and
      `-Xarch_host`; so we don't need to allow space separators which are uncommon in
      driver code).
      
      Bear in mind that -mllvm options are unstable and should be avoided if possible.
      
      Reviewed By: jhuber6, yaxunl
      
      Differential Revision: https://reviews.llvm.org/D143325
      90094ab8
  2. Feb 05, 2023