SuccessChanges

Summary

  1. [lldb/cmake] Fix linking of lldbUtilityHelpers for 9cb222e74 (details)
  2. [SimplifyLibCalls] Remove over-eager early return in strlen optzns. (details)
  3. [Hexagon] Widen short vector stores to HVX vectors using masked stores (details)
  4. AMDGPU: Hoist subtarget lookup (details)
  5. [lldb/cmake] Fix linking of lldbSymbolHelpers for 9cb222e7 (details)
  6. [Hexagon] Fold single-use variable into assert. NFCI. (details)
Commit 5b2b754565602a8b49b68967e1810f592f175d6b by pavel
[lldb/cmake] Fix linking of lldbUtilityHelpers for 9cb222e74
The file was modifiedlldb/unittests/TestingSupport/CMakeLists.txt (diff)
Commit 419c6948df420dc2638e74a2b409e1d117256050 by flo
[SimplifyLibCalls] Remove over-eager early return in strlen optzns.

Currently we bail out early for strlen calls with a GEP operand, if none
of the GEP specific optimizations fire. But there could be later
optimizations that still apply,  which we currently miss out on.

An example is that we do not apply the following optimization
   strlen(x) == 0 --> *x == 0

Unless I am missing something, there seems to be no reason for bailing
out early there.

Fixes PR47149.

Reviewed By: lebedev.ri, xbolva00

Differential Revision: https://reviews.llvm.org/D85886
The file was modifiedllvm/lib/Transforms/Utils/SimplifyLibCalls.cpp (diff)
The file was modifiedllvm/test/Transforms/InstCombine/strlen-1.ll (diff)
Commit 154daf1f94fd44b4ddc863ac865b82eec56f2c89 by kparzysz
[Hexagon] Widen short vector stores to HVX vectors using masked stores

Also invent a flag -hexagon-hvx-widen=N to set the minimum threshold
for widening short vectors to HVX vectors.
The file was modifiedllvm/lib/Target/Hexagon/HexagonISelLowering.cpp (diff)
The file was addedllvm/test/CodeGen/Hexagon/autohvx/short-store-widen.ll
The file was modifiedllvm/lib/Target/Hexagon/HexagonISelLowering.h (diff)
The file was modifiedllvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp (diff)
Commit 6c770a09bed7cb955a7ecfa5c7b3111bdb772620 by Matthew.Arsenault
AMDGPU: Hoist subtarget lookup
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp (diff)
Commit dd635062d867835cfe893698161277cc251b4456 by pavel
[lldb/cmake] Fix linking of lldbSymbolHelpers for 9cb222e7

I didn't find this locally because I have a /usr/include/gtest which is
similar enough to the bundled one to make things appear to work.
The file was modifiedlldb/unittests/TestingSupport/Symbol/CMakeLists.txt (diff)
Commit 2b7df2707f48e85cbc9f8b2a76659875abf7a2ac by benny.kra
[Hexagon] Fold single-use variable into assert. NFCI.
The file was modifiedllvm/lib/Target/Hexagon/HexagonISelLoweringHVX.cpp (diff)