1. Feb 22, 2022
  2. Feb 19, 2022
  3. Feb 18, 2022
  4. Feb 17, 2022
  5. Feb 16, 2022
  6. Feb 15, 2022
    • Dimitry Andric's avatar
      Revert "[RISCV] Enable shrink wrap by default" · 2eed9111
      Dimitry Andric authored
      This reverts commit 5ebdb07e.
      
      Enabling shrink wrap by default can cause assertions or crashes, and
      these should first be investigated and fixed. For now, reverting the
      change so it can be cherry-picked into 14.0.0 is the safest choice.
      
      (cherry picked from commit 7af3d4ab)
      2eed9111
    • Michał Górny's avatar
      [lldb] [Commands] Implement "thread siginfo" · 89fb25f4
      Michał Górny authored
      Differential Revision: https://reviews.llvm.org/D118473
      
      (cherry picked from commit 287ce6b5)
      89fb25f4
    • Craig Topper's avatar
      [RISCV] Insert VSETVLI at the end of a basic block if we didn't produce BlockInfo.Exit. · 3b544440
      Craig Topper authored
      This is an alternative to D118667 that instead of fixing the store
      to match phase 1, it tries to detect the mismatch with the expected
      value at the end of the block. This inserts a vsetvli after the vse
      to satisfy the requirement of the other basic block.
      
      We still have serious design issues in the pass, that is going to
      require some rethinking.
      
      Differential Revision: https://reviews.llvm.org/D119518
      
      (cherry picked from commit 541c9ba8)
      3b544440
    • Craig Topper's avatar
      Revert "[RISCV] Fix a vsetvli insertion bug involving loads/stores." and... · e22573ab
      Craig Topper authored
      Revert "[RISCV] Fix a vsetvli insertion bug involving loads/stores." and "[RISCC] Add missing words to comment. NFC"
      
      This reverts commit f943c58c.
      and commit 7eb78107.
      
      This introduced a new bug that appears to be easier to hit.
      
      Differential Revision: https://reviews.llvm.org/D119517
      
      (cherry picked from commit f35ac872)
      e22573ab
    • Craig Topper's avatar
      [RISCV] Add test case for a vsetvli insertion bug found after D118667. · 8f8a31ec
      Craig Topper authored
      We're missing a vsetvli before a vse after a redsum in this test.
      
      This appears to be because the vmv.s.x has a VL of 1, but did not
      trigger a vsetvli because it is a scalar move op and any non-zero
      VL would work. So it looked at it the predecessors and decided it was
      that they all had a non-zero vl. Then the redsum was visited, it
      also took the VL from the predecessors since the vmv.s.x and the 4
      was found compatible.
      
      Finally we visit the vse and it looks at the BBLocalInfo and sees
      that is compatible because it contains a VL of 1 from the vmv.s.x,
      the first instruction in the block. BBLocalInfo was not updated
      when the vredsum was visited because BBLocalInfo was valid and no
      vsetvli was generated.
      
      I think fundamentally the vmv.s.x optimization has the same first
      phase and third phase not matching problem that D118667 was trying
      to fix for stores.
      
      Differential Revision: https://reviews.llvm.org/D119516
      
      (cherry picked from commit ba9a7ae7)
      8f8a31ec
    • Jonathan Peyton's avatar
      [OpenMP][libomp] Replace accidental VLA with KMP_ALLOCA · 78f8449e
      Jonathan Peyton authored
      MSVC does not support variable length arrays. Replace with KMP_ALLOCA
      which is already used in the same file for stack-allocated variables.
      
      (cherry picked from commit 6be7c21b)
      78f8449e
    • David Spickett's avatar
      Reland "[lldb] Remove non address bits when looking up memory regions" · af19ae52
      David Spickett authored
      (cherry picked from 2937b282)
      
      This reverts commit 0df52296.
      
      Additional checks are added to fix the detection of the last memory region
      in GetMemoryRegions or repeating the "memory region" command when the
      target has non-address bits.
      
      Normally you keep reading from address 0, looking up each region's end
      address until you get LLDB_INVALID_ADDR as the region end address.
      (0xffffffffffffffff)
      
      This is what the remote will return once you go beyond the last mapped region:
      [0x0000fffffffdf000-0x0001000000000000) rw- [stack]
      [0x0001000000000000-0xffffffffffffffff) ---
      
      Problem is that when we "fix" the lookup address, we remove some bits
      from it. On an AArch64 system we have 48 bit virtual addresses, so when
      we fix the end address of the [stack] region the result is 0.
      So we loop back to the start.
      
      [0x0000fffffffdf000-0x0001000000000000) rw- [stack]
      [0x0000000000000000-0x0000000000400000) ---
      
      To fix this I added an additional check for the last range.
      If the end address of the region is different once you apply
      FixDataAddress, we are at the last region.
      
      Since the end of the last region will be the last valid mappable
      address, plus 1. That 1 will be removed by the ABI plugin.
      
      The only side effect is that on systems with non-address bits, you
      won't get that last catch all unmapped region from the max virtual
      address up to 0xf...f.
      
      [0x0000fffff8000000-0x0000fffffffdf000) ---
      [0x0000fffffffdf000-0x0001000000000000) rw- [stack]
      <ends here>
      
      Though in some way this is more correct because that region is not
      just unmapped, it's not mappable at all.
      
      No extra testing is needed because this is already covered by
      TestMemoryRegion.py, I simply forgot to run it on system that had
      both top byte ignore and pointer authentication.
      
      This change has been tested on a qemu VM with top byte ignore,
      memory tagging and pointer authentication enabled.
      
      Reviewed By: omjavaid
      
      Differential Revision: https://reviews.llvm.org/D115508
      af19ae52
    • Shilei Tian's avatar
      [OpenMP][Offloading] Fix infinite loop in applyToShadowMapEntries · 01e3eb2b
      Shilei Tian authored
      This patch fixes the issue that the for loop in `applyToShadowMapEntries`
      is infinite because `Itr` is not incremented in `CB`. Fixes #53727.
      
      Reviewed By: jdoerfert
      
      Differential Revision: https://reviews.llvm.org/D119471
      
      (cherry picked from commit c27f530d)
      01e3eb2b
    • Louis Dionne's avatar
      [release] Use a supported way of building libc++ when building the documentation · f0b442c8
      Louis Dionne authored
      Instead of using the deprecated LLVM_ENABLE_PROJECTS build, use the
      default runtimes build. This is just as fast, but it's supported.
      
      Differential Revision: https://reviews.llvm.org/D119275
      
      (cherry picked from commit f34f7dfe)
      f0b442c8