1. [Scalarizer] Avoid changing name of non-instructions (details)
  2. [ARM][MVE] Tail-predication: use unsigned SCEV ranges for tripcount (details)
  3. AliasSetTracker.cpp - remove unnecessary includes. NFCI. (details)
  4. ProvenanceAnalysis.h - remove unnecessary AliasAnalysis.h include. NFCI. (details)
  5. LoopCacheAnalysis.h - remove unnecessary includes. NFCI. (details)
  6. [libc++] Allow building without threads in standalone builds (details)
  7. Restrict UnnecessaryCopyInitialization check to variables initialized from free functions without arguments (details)
  8. [ConstraintSolver] Add isConditionImplied helper. (details)
  9. [Flang] Add GettingInvolved documentation page and sidebar. (details)
  10. [lld][WebAssembly] Fix --export-all when __stack_pointer is present (details)
  11. [gn build] (semi-manually) port 380e746bcca (details)
  12. [ConstraintElimination] Add initial tests. (details)
  13. [libcxx] Disable failing test for no-exceptions build (details)
  14. [InstCombine] improve test names; NFC (details)
  15. [InstCombine] add RUN to show miscompile of pow expansion; NFC (details)
  16. [InstCombine] fix bug in pow expansion (details)
  17. [gn build] Port a8058c6f8d1 (details)
  18. [gn build] Port cd4edf94cd4 (details)
  19. [mlir][Standard] Add canonicalizer for dynamic_tensor_from_elements (details)
  20. [mlir][openacc] Add missing print of vector_length in parallel op (details)
  21. [Utils] isLegalToPromote - Fix missing null check before writing to FailureReason. (details)
  22. AMDGPUPrintfRuntimeBinding.cpp - drop unnecessary casts/dyn_casts. NFCI. (details)
  23. Revert "[SelectionDAG] Remove unused FP constant in getNegatedExpression" (details)
  24. [LLD][PowerPC] Add support for R_PPC64_TPREL34 used in TLS Local Exec (details)
  25. [libc] Fix typo in platform_defs.h.inc (details)
  26. [libc] Add missing LibcFPTestHelpers library (details)
  27. [libc] Add missing TableGen dependency (details)
  28. [analyzer][StdLibraryFunctionsChecker] Elaborate the summary of fread and fwrite (details)
  29. [llvm-readobj/elf] - Don't crash when the size of s dynamic symbol table, inferred from the hash table, is broken. (details)
  30. [analyzer] Add documentation for alpha.fuchsia.Lock and alpha.core.C11Lock (details)
  31. [InstSimplify] add limit folds for fmin/fmax (details)
  32. [libc++] Use allocator_traits to consistently allocate/deallocate/construct/destroy objects in std::any (details)
  33. SLPVectorizer.h - remove unnecessary AliasAnalysis.h include. NFCI. (details)
  34. [mlir][openacc] Add loop op verifier (details)
  35. [analyzer][Liveness][NFC] Get rid of statement liveness, because such a thing doesn't exist (details)
  36. [XCOFF] Run resource intense test only on platforms where it makes sense (details)
  37. [libc++] Add a benchmark for std::map operations (details)
  38. [MachineBasicBlock] Fix a typo in function copySuccessor (details)
  39. NFC: Add whitespace change to .git-blame-ignore-revs (details)
  40. [X86][AVX] lowerShuffleWithSHUFPS - handle missed canonicalization cases. (details)
  41. [lldb] Add -l/--language option to script command (details)
  42. [VectorCombine] Don't vectorize scalar load under asan/hwasan/memtag/tsan (details)
  43. Revert "[DebugInfo] Remove dots from getFilenameByIndex return value" (details)
  44. Revert "[DSE] Switch to MemorySSA-backed DSE by default." (details)
  45. [MemoryBuffer] Revert unintended MemoryBuffer change from D86996 (details)
  46. Fix bot failure after ccb4124a4172 (details)
  47. [OPENMP]Add support for allocate vars in untied tasks. (details)
  48. [LoopAccessAnalysis][NewPM] Fix tests to work under NPM (details)
  49. [DependenceAnalysis][NewPM] Fix tests to work under NPM (details)
  50. [RegionInfo][NewPM] Fix RegionInfo tests to work under NPM (details)
  51. [NewPM][opt] Fix -globals-aa not being recognized as alias analysis in NPM (details)
  52. [PostDominators][NewPM] Fix tests to work under NPM (details)
  53. [libc++] Add missing friend keyword (details)
  54. [X86] Use Align in reduceMaskedLoadToScalarLoad/reduceMaskedStoreToScalarStore. Correct pointer info. (details)
  55. [Bugpoint][NewPM] Pin bugpoint to legacy PM (details)
  56. [ConstraintElimination] Add constraint elimination pass. (details)
  57. [gn build] Port 3d42d549554 (details)
  58. Fix .debug_aranges parsing. (details)
  59. [DemandedBits][NewPM] Pin some tests to legacy PM (details)
  60. [Dominators][NewPM] Pin tests with -analyze to legacy PM (details)
  61. [libc++] Fix broken test for std::any and allocators (details)
  62. [ASTMatchers] extract public matchers from const-analysis into own patch (details)
  63. [CodeGen][typeid] Emit typeinfo directly if type is known at compile-time (details)
  64. [PowerPC] Implement __int128 vector divide operations (details)
  65. [AArch64][SVE] Add lowering for llvm fsqrt (details)
  66. [clang] Add a command line flag for the Machine Function Splitter. (details)
  67. InferAddressSpaces: Fix assert with unreachable code (details)
  68. [TableGen] Fix invalid comparison function `SizeOrder` in `getMatchingSubClassWithSubRegs` (details)
  69. Implement __isOSVersionAtLeast for Android (details)
  70. [libc] remove useless headers (details)
  71. [SLPVectorizer][SVE] Skip scalable-vector instructions before vectorizeSimpleInstructions. (details)
  72. [libc] use stddef instead of string header (details)
  73. Sema: add support for `__attribute__((__swift_bridged_typedef__))` (details)
  74. [libc] Remove special case for 8 and 16 bytes (details)
  75. [mlir] Rename 'setInsertionPointAfter' to avoid ambiguity (details)
  76. [OPENMP]Fix codegen for is_device_ptr component, captured by reference. (details)
  77. [OpenMP] Additional Information for Libomptarget Mappings (details)
  78. [TSAN] Handle musttail call properly in EscapeEnumerator (and TSAN) (details)
  79. [AMDGPU] Unify intrinsic ret/nortn interface (details)
  80. GlobalISel: Add combines for G_TRUNC (details)
  81. [SourceManager] Explicitly check for potential iterator underflow (details)
  82. [ThinLTO] add post-thinlto-merge option to -lto-embed-bitcode (details)
  83. [GISel] Add new GISel combiners for G_MUL (details)
  84. [BFI] Make BFI information available through loop passes inside LoopStandardAnalysisResults (details)
  85. [llvm][cmake] Change LLVM_INTEGRATED_CRT_ALLOC to a path instead of a boolean (details)
  86. GlobalISel: Fix a failing combiner test (details)
  87. [CGSCC][NewPM] Fix adding mutually recursive new functions (details)
  88. [AArch64][GlobalISel] Refactor + improve CMN, ADDS, and ADD emit functions (details)
  89. [LICM] Make Loop ICM profile aware again (details)
  90. SVML support for log10, sqrt (details)
  91. [LowerSwitch][NewPM] Port lowerswitch to NPM (details)
  92. [NewPM] Port strip* passes to NPM (details)
  93. [Hexagon] Replace incorrect pattern for vpackl HWI32 -> HVi8 (details)
Commit aa8be5aeead7ad894270aa025e7165169c1a54d2 by bjorn.a.pettersson
[Scalarizer] Avoid changing name of non-instructions

The "takeName" logic in ScalarizerVisitor::gather did not consider
that the value vector could refer to non-instructions, such as
global variables. This patch make sure that we avoid changing the
name of a value if it isn't an instruction.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D87685
The file was modifiedllvm/lib/Transforms/Scalar/Scalarizer.cpp
The file was addedllvm/test/Transforms/Scalarizer/global-bug-2.ll
Commit 635b87511ec3d6d2fa8f65a3ed1876f01367584e by sjoerd.meijer
[ARM][MVE] Tail-predication: use unsigned SCEV ranges for tripcount

Loop tripcount expressions have a positive range, so use unsigned SCEV ranges
for them.

Differential Revision: https://reviews.llvm.org/D87608
The file was modifiedllvm/lib/Target/ARM/MVETailPredication.cpp
Commit 6d40f35c9fa66d34db88542a77b8f185906ae20b by llvm-dev
AliasSetTracker.cpp - remove unnecessary includes. NFCI.

These are all directly included in AliasSetTracker.h
The file was modifiedllvm/lib/Analysis/AliasSetTracker.cpp
Commit 796c80526929e672efbdb2dfae1add1cc66c46b8 by llvm-dev
ProvenanceAnalysis.h - remove unnecessary AliasAnalysis.h include. NFCI.

Forward declare AAResults instead of the (old) AliasAnalysis type.
The file was modifiedllvm/lib/Transforms/ObjCARC/ProvenanceAnalysis.h
Commit 50d2a5d4c747855dc86a8b66a4a228abb66ca08e by llvm-dev
LoopCacheAnalysis.h - remove unnecessary includes. NFCI.

More remaining dependencies down to LoopCacheAnalysis.cpp
The file was modifiedllvm/include/llvm/Analysis/LoopCacheAnalysis.h
The file was modifiedllvm/lib/Analysis/LoopCacheAnalysis.cpp
Commit da104444fafbc8f657f06c2188ab2e8284563e3d by Louis Dionne
[libc++] Allow building without threads in standalone builds

Setting _LIBCPP_HAS_NO_THREADS is needed when building libcxxabi without
threads in standalone mode. This is useful when target WASM. Otherwise,
you get an error like "No thread API" when building libcxxabi.

It would be better to link against a properly-configured libc++ headers
CMake target when building libc++abi instead, but we don't generate such
targets yet.

Thanks to Matthew Bauer for the patch.

Differential Revision: https://reviews.llvm.org/D60743
The file was modifiedlibcxxabi/CMakeLists.txt
Commit 98e07b5596c8692c43770bc4e21a2b19467e35f7 by aaron
Restrict UnnecessaryCopyInitialization check to variables initialized from free functions without arguments

This restriction avoids cases where an alias is returned to an argument and
which could lead to to a false positive change.
The file was modifiedclang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-copy-initialization.cpp
Commit db22e70d010744573df19d69ed3de5b84ea60d1c by flo
[ConstraintSolver] Add isConditionImplied helper.

This patch adds a isConditionImplied function that
takes a constraint and returns true if the constraint
is implied by the current constraints in the system.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D84545
The file was modifiedllvm/lib/Analysis/ConstraintSystem.cpp
The file was modifiedllvm/include/llvm/Analysis/ConstraintSystem.h
The file was modifiedllvm/unittests/Analysis/ConstraintSystemTest.cpp
Commit fe395aecd9e70b815e6490639098d815385f9932 by joshisameeran17
[Flang] Add GettingInvolved documentation page and sidebar.

Adds a new GettingInvolved page to documentation which provides details about
mailing list, chats and calls.

Adds a sidebar page which provides common links on
all documentation pages.
The links include:
-  Getting Started
-  Getting Involved
-  Github Repository
-  Bug Reports
-  Code Review

Depends on https://reviews.llvm.org/D87242

Reviewed By: richard.barton.arm

Differential Revision: https://reviews.llvm.org/D87270
The file was modifiedflang/docs/index.md
The file was addedflang/docs/GettingInvolved.md
The file was modifiedflang/docs/conf.py
The file was addedflang/docs/_templates/indexsidebar.html
The file was addedflang/docs/_templates/layout.html
Commit 3f411e97739ffbdca0077d1c4fdc9c1fc1819019 by sbc
[lld][WebAssembly] Fix --export-all when __stack_pointer is present

With https://reviews.llvm.org/D87537 we made it an error
to import or export a mutable global with the +mutable-globals
feature present.  However the scan was of the entire symbol
table rather than just the imports or exports and the filter
didn't match exaclyt meaning the `__stack_pointer` (a mutable
global) was always triggering with error when the `--export-all`
flag was used.

This also revealed that we didn't have any test coverage for
the `--export-all` flag.

This change fixes the current breakage on the emscripten-releases

Differential Revision: https://reviews.llvm.org/D87663
The file was modifiedlld/wasm/Writer.cpp
The file was addedlld/test/wasm/export-all.s
The file was modifiedlld/wasm/SyntheticSections.h
Commit 57752b1449440a7d034d2d1781f586c3c664712e by thakis
[gn build] (semi-manually) port 380e746bcca
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/CodeGen/BUILD.gn
Commit 802d21cdf08ea43d5c32924ac29c44b00c4a841f by flo
[ConstraintElimination] Add initial tests.
The file was addedllvm/test/Transforms/ConstraintElimination/i128.ll
The file was addedllvm/test/Transforms/ConstraintElimination/mixed.ll
The file was addedllvm/test/Transforms/ConstraintElimination/ule.ll
The file was addedllvm/test/Transforms/ConstraintElimination/geps.2d.ll
The file was addedllvm/test/Transforms/ConstraintElimination/geps.ll
The file was addedllvm/test/Transforms/ConstraintElimination/ugt-ule.ll
The file was addedllvm/test/Transforms/ConstraintElimination/dom.ll
The file was addedllvm/test/Transforms/ConstraintElimination/uge.ll
The file was addedllvm/test/Transforms/ConstraintElimination/loops.ll
Commit 2744c2e2957221c8e9379e2232790c3e56efd90d by oliver.stannard
[libcxx] Disable failing test for no-exceptions build

This test tries to create a 2 GiB std::string, catching the bad_alloc
exception if the allocation fails. However, for no-exceptions builds
there is no way for the error to be reported, so this crashes with a
null pointer dereference.

Differential revision: https://reviews.llvm.org/D87682
The file was modifiedlibcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/pbump2gig.pass.cpp
Commit eb66b04cbecfbc971bf8b8abbb4c58dbd4a7564a by spatel
[InstCombine] improve test names; NFC

This is not a valid transform unless we can prove
that the program does not read errno after the pow
call and before some other function changes it.
The file was modifiedllvm/test/Transforms/InstCombine/pow-1.ll
Commit 7ffc9aa538dfa3facbbb09d3b0d517a59e967d0e by spatel
[InstCombine] add RUN to show miscompile of pow expansion; NFC

The code drops the sqrt op instead of bailing out,
so this is very wrong.
The file was modifiedllvm/test/Transforms/InstCombine/pow-4.ll
Commit aa57c1c967078a8c02e7fc2c837853dbd7cc66f4 by spatel
[InstCombine] fix bug in pow expansion

There at least one other bug related to pow -> sqrt transforms:
...but we probably can't solve that without fixing this first.
The file was modifiedllvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
The file was modifiedllvm/test/Transforms/InstCombine/pow-4.ll
Commit 46dc41e1ef9c38cc4cef0a995528bbf58d616a09 by llvmgnsyncbot
[gn build] Port a8058c6f8d1
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/CodeGen/BUILD.gn
Commit c0809f8d79045941d45c7bd60a12ddd0f6e0811a by llvmgnsyncbot
[gn build] Port cd4edf94cd4
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Analysis/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/Analysis/BUILD.gn
Commit c897a7fb3e2a5c200a3e87a92886eab20d9f7fc7 by herhut
[mlir][Standard] Add canonicalizer for dynamic_tensor_from_elements

This add canonicalizer for

- extracting an element from a dynamic_tensor_from_elements
- propagating constant operands to the type of dynamic_tensor_from_elements

Differential Revision: https://reviews.llvm.org/D87525
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
The file was modifiedmlir/test/Transforms/canonicalize.mlir
The file was modifiedmlir/include/mlir/Dialect/StandardOps/IR/Ops.td
Commit 2d8f0c05dbe76a31060a729928b9b9d7ebbf0c40 by clementval
[mlir][openacc] Add missing print of vector_length in parallel op

This patch adds the missing print for the vector_length in the parallel operation.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D87630
The file was modifiedmlir/test/Dialect/OpenACC/ops.mlir
The file was modifiedmlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
Commit 65c6ae3b6aceb934a76c5b10b244edeed80e9cac by llvm-dev
[Utils] isLegalToPromote - Fix missing null check before writing to FailureReason.

The FailureReason input parameter maybe null, we check this in all other cases in the method but this one was missed somehow.

Fixes clang-tidy warning.
The file was modifiedllvm/lib/Transforms/Utils/CallPromotionUtils.cpp
Commit 97a23ab28ad91d589e6c0bb5dee6ae78c154da8a by llvm-dev
AMDGPUPrintfRuntimeBinding.cpp - drop unnecessary casts/dyn_casts. NFCI.

GetElementPtrInst::Create returns a GetElementPtrInst* so we don't need to cast. Similarly IntegerType inherits from the Type base class.

Also, I've used auto* in a few places to cleanup the code.

Helps fix some clang-tidy warnings which saw the dyn_casts and warned that these can return null.
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
Commit e1669843f2aaf1e4929afdd8f125c14536d27664 by qiucofan
Revert "[SelectionDAG] Remove unused FP constant in getNegatedExpression"

2508ef01 doesn't totally fix the issue since we did not handle the case
when unused temporary negated result is the same with the result, which
is found by address sanitizer.
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
The file was removedllvm/test/CodeGen/X86/pr47517.ll
Commit 65f6810d3a4b0ef1fdaad49e808459fbd133bb20 by stefanp
[LLD][PowerPC] Add support for R_PPC64_TPREL34 used in TLS Local Exec

Add Thread Local Storage Local Exec support to LLD. This is to support PC Relative addressing of Local Exec.
The patch teaches LLD to handle:
paddi r9, r13, x1@tprel
The relocation is:

Reviewed By: NeHuang, MaskRay

Differential Revision: https://reviews.llvm.org/D86608
The file was modifiedlld/ELF/Arch/PPC64.cpp
The file was addedlld/test/ELF/ppc64-tls-pcrel-le.s
Commit 85763e0758fbd238c81f233c6f9510e81c7de177 by gchatelet
[libc] Fix typo in platform_defs.h.inc

Differential Revision: https://reviews.llvm.org/D87687
The file was addedlibc/config/linux/platform_defs.h.inc
The file was removedlibc/config/linux/platfrom_defs.h.inc
The file was modifiedlibc/src/__support/CMakeLists.txt
Commit 00d6e7116c208b06e4c85bb58a40e76412be65a6 by gchatelet
[libc] Add missing LibcFPTestHelpers library

Differential Revision: https://reviews.llvm.org/D87690
The file was modifiedlibc/utils/MPFRWrapper/CMakeLists.txt
Commit e328456a9e6fa8c1ef05e183c1506ed837005847 by gchatelet
[libc] Add missing TableGen dependency

Differential Revision: https://reviews.llvm.org/D87689
The file was modifiedlibc/utils/LibcTableGenUtil/CMakeLists.txt
Commit a012bc4c42e4408a18e4c4d67306b79c576df961 by gabor.marton
[analyzer][StdLibraryFunctionsChecker] Elaborate the summary of fread and fwrite

Add the BufferSize argument constraint to fread and fwrite. This change
itself makes it possible to discover a security critical case, described

We also add the not-null constraint on the 3rd arguments.

In this patch, I also remove those lambdas that don't take any
parameters (Fwrite, Fread, Getc), thus making the code better

Differential Revision: https://reviews.llvm.org/D87081
The file was modifiedclang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
The file was modifiedclang/test/Analysis/analyzer-enabled-checkers.c
The file was modifiedclang/test/Analysis/Inputs/system-header-simulator.h
The file was modifiedclang/test/Analysis/std-c-library-functions-arg-constraints.c
The file was addedclang/test/Analysis/std-c-library-functions-vs-stream-checker.c
The file was modifiedclang/include/clang/StaticAnalyzer/Checkers/Checkers.td
Commit 7df873f9c67099a209f0122a1f5411e701a9d425 by grimar
[llvm-readobj/elf] - Don't crash when the size of s dynamic symbol table, inferred from the hash table, is broken.

Currently we might derive the dynamic symbol table size from the DT_HASH hash table (using its `nchain` field).
It is possible to crash dumpers with a broken relocation that refers to a symbol with an index
that is too large. To trigger it, the inferred size of the dynamic symbol table should go past the end of the object.

This patch adds a size validation + warning.

Differential revision: https://reviews.llvm.org/D86923
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
The file was modifiedllvm/test/tools/llvm-readobj/ELF/dyn-symbols-size-from-hash-table.test
The file was modifiedllvm/test/tools/llvm-readobj/ELF/hash-symbols.test
The file was modifiedllvm/test/tools/llvm-readobj/ELF/hash-histogram.test
The file was modifiedllvm/test/tools/llvm-readobj/ELF/hash-table.test
Commit 7c6f5b7fbf5a9eee7f3ef9192c354d1536a8f1c6 by dkszelethus
[analyzer] Add documentation for alpha.fuchsia.Lock and alpha.core.C11Lock

Differential Revision: https://reviews.llvm.org/D86532
The file was modifiedclang/docs/analyzer/user-docs/CrossTranslationUnit.rst
The file was modifiedclang/docs/analyzer/checkers.rst
Commit 8985755762a429573af2ce657274772339d3b9db by spatel
[InstSimplify] add limit folds for fmin/fmax

If the constant operand is the opposite of the min/max value,
then the result must be the other value.

This is based on the similar codegen transform proposed in:
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
The file was modifiedllvm/test/Transforms/PhaseOrdering/X86/vector-reductions-expanded.ll
The file was modifiedllvm/test/Transforms/InstSimplify/fminmax-folds.ll
Commit 39c8795141703a7d8313b2448d9d34e856df0b85 by Louis Dionne
[libc++] Use allocator_traits to consistently allocate/deallocate/construct/destroy objects in std::any

https://llvm.org/PR45099 notes (correctly) that we're inconsistent in memory
allocation in `std::any`. We allocate memory with `std::allocator<T>::allocate`,
construct with placement new, destroy by calling the destructor directly, and
deallocate by calling `delete`. Most of those are customizable by the user,
but in different ways.

The standard is silent on how these things are to be accomplished.
This patch makes it so we use `allocator_traits<allocator<T>>` for all
of these operations (allocate, construct, destruct, deallocate).
This is, at least, consistent.

Fixes https://llvm.org/PR45099.

Differential Revision: https://reviews.llvm.org/D81133
The file was modifiedlibcxx/include/any
The file was addedlibcxx/test/libcxx/utilities/any/allocator.pass.cpp
Commit 2b42d53e5ea4ee648cde5b2f73523f01f2405631 by llvm-dev
SLPVectorizer.h - remove unnecessary AliasAnalysis.h include. NFCI.

Forward declare AAResults instead of the (old) AliasAnalysis type.

Remove includes from SLPVectorizer.cpp that are already included in SLPVectorizer.h.
The file was modifiedllvm/include/llvm/Transforms/Vectorize/SLPVectorizer.h
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Commit 01f5fcd8290349265e6039ad9089b086ea783f00 by clementval
[mlir][openacc] Add loop op verifier

Add a verifier for the loop op in the OpenACC dialect. Check basic restriction
from 2.9 Loop construct from the OpenACC 3.0 specs.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D87546
The file was modifiedmlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
The file was modifiedmlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
The file was addedmlir/test/Dialect/OpenACC/invalid.mlir
The file was modifiedmlir/test/Dialect/OpenACC/ops.mlir
Commit dd1d5488e47d0a89217dfd22a726c3d3ad2b4984 by dkszelethus
[analyzer][Liveness][NFC] Get rid of statement liveness, because such a thing doesn't exist

The summary and very short discussion in D82122 summarizes whats happening here.

In short, liveness talks about variables, or expressions, anything that
has a value. Well, statements just simply don't have a one.

Differential Revision: https://reviews.llvm.org/D82598
The file was modifiedclang/lib/StaticAnalyzer/Core/SymbolManager.cpp
The file was modifiedclang/test/Analysis/live-stmts.cpp
The file was modifiedclang/docs/analyzer/developer-docs/DebugChecks.rst
The file was modifiedclang/lib/StaticAnalyzer/Checkers/DebugCheckers.cpp
The file was modifiedclang/lib/StaticAnalyzer/Core/Environment.cpp
The file was modifiedclang/include/clang/Analysis/Analyses/LiveVariables.h
The file was modifiedclang/include/clang/StaticAnalyzer/Checkers/Checkers.td
The file was modifiedclang/test/Analysis/live-stmts.mm
The file was modifiedclang/lib/Analysis/LiveVariables.cpp
The file was modifiedclang/include/clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h
Commit ec2b0a51977861ed7be92c365ec2636fbf690528 by jasonliu
[XCOFF] Run resource intense test only on platforms where it makes sense

This is a follow up commit for the issue raised in
The file was modifiedllvm/test/CodeGen/PowerPC/aix-overflow-toc.py
Commit 74a9c6d7e1c49cd0e3a8e8072b8aa03f7a84caff by Louis Dionne
[libc++] Add a benchmark for std::map operations

Before tackling http://llvm.org/PR38722, make sure there is a baseline

Differential Revision: https://reviews.llvm.org/D62778
The file was addedlibcxx/benchmarks/map.bench.cpp
Commit 243ffd0cade71ddca9b0dffec1c8e9084b0f7745 by carrot
[MachineBasicBlock] Fix a typo in function copySuccessor

The condition used to decide if need to copy probability should be reversed.

Differential Revision: https://reviews.llvm.org/D87417
The file was modifiedllvm/lib/CodeGen/MachineBasicBlock.cpp
Commit 4ddd985ca941e48a016e8d7270921b4aa76afbe1 by Louis Dionne
NFC: Add whitespace change to .git-blame-ignore-revs
The file was modified.git-blame-ignore-revs
Commit a43e68b58b085797e2f1435765255ebd431db297 by llvm-dev
[X86][AVX] lowerShuffleWithSHUFPS - handle missed canonicalization cases.

PR47534 exposes a case where calling lowerShuffleWithSHUFPS directly from a derived repeated mask (found by is128BitLaneRepeatedShuffleMask) results in us using an non-canonicalized mask.

The missed canonicalization in this case is trivial - just commute the mask so we have more (swapped) LHS than RHS references so lowerShuffleWithSHUFPS can handle it.
The file was modifiedllvm/test/CodeGen/X86/vector-shuffle-avx512.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit 127faae7529aee7e8508abebbc19212ce30bbf27 by Jonas Devlieghere
[lldb] Add -l/--language option to script command

Make it possible to run the script command with a different language
than currently selected.

  $ ./bin/lldb -l python
  (lldb) script -l lua
  >>> io.stdout:write("Hello, World!\n")
  Hello, World!

When passing the language option and a raw command, you need to separate
the flag from the script code with --.

  $ ./bin/lldb -l python
  (lldb) script -l lua -- io.stdout:write("Hello, World!\n")
  Hello, World!

Differential revision: https://reviews.llvm.org/D86996
The file was modifiedlldb/source/Commands/CommandObjectScript.h
The file was modifiedlldb/source/Commands/Options.td
The file was addedlldb/test/Shell/ScriptInterpreter/Lua/lua-python.test
The file was modifiedllvm/lib/Support/MemoryBuffer.cpp
The file was modifiedlldb/source/Commands/CommandObjectScript.cpp
The file was addedlldb/test/Shell/ScriptInterpreter/Python/python.test
The file was modifiedlldb/test/Shell/ScriptInterpreter/Lua/lua.test
Commit 4452cc4086aca1a424b2cd40da9fa120add522e7 by i
[VectorCombine] Don't vectorize scalar load under asan/hwasan/memtag/tsan

Similar to the tsan suppression in
`Utils/VNCoercion.cpp:getLoadLoadClobberFullWidthSize` (rL175034; load widening used by GVN),
the D81766 optimization should be suppressed under tsan due to potential
spurious data race reports:

  struct A {
    int i;
    const short s; // the load cannot be vectorized because
    int modify;    // it overlaps with bytes being concurrently modified
    long pad1, pad2;
  // __tsan_read16 does not know that some bytes are undef and accessing is safe

Similarly, under asan, users can mark memory regions with
`__asan_poison_memory_region`. A widened load can lead to a spurious
use-after-poison error. hwasan/memtag should be similarly suppressed.

`mustSuppressSpeculation` suppresses asan/hwasan/tsan but not memtag, so
we need to exclude memtag in `vectorizeLoadInsert`.

Note, memtag suppression can be relaxed if the load is aligned to the
its granule (usually 16), but that is out of scope of this patch.

Reviewed By: spatel, vitalybuka

Differential Revision: https://reviews.llvm.org/D87538
The file was modifiedllvm/lib/Transforms/Vectorize/VectorCombine.cpp
The file was modifiedllvm/test/Transforms/VectorCombine/X86/load.ll
Commit 9c73e555104336109bb8327b80f3e6a42a17ef1d by phosek
Revert "[DebugInfo] Remove dots from getFilenameByIndex return value"

This is failing on Windows bots due to path separator normalization.

This reverts commit 042c23506869b4ae9a49d2c4bc5ea6e6baeabe78.
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
The file was modifiedlld/test/wasm/debuginfo.test
The file was modifiedlld/test/COFF/duplicate-dwarf.s
The file was modifiedllvm/test/tools/llvm-symbolizer/frame-fortran.s
The file was modifiedlld/test/ELF/conflict-debug-variable2.s
The file was modifiedlld/test/COFF/undefined-symbol-dwarf.s
Commit 3a59628f3cc26eb085acfc9cbdc97243ef71a6c5 by flo
Revert "[DSE] Switch to MemorySSA-backed DSE by default."

This reverts commit fb109c42d91c30c8c7497ef1fd7aff6f2969c6e7.

Temporarily revert due to a mis-compile pointed out at D87163.
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/merge-stores-big-endian.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/pr11390.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/2011-03-25-DSEMiscompile.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/memset-and-memcpy.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/const-pointers.ll
The file was modifiedclang/test/CodeGenObjC/exceptions.m
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/atomic.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-malloc-free.ll
The file was modifiedllvm/test/Other/opt-Os-pipeline.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/atomic-overlapping.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/2011-09-06-EndOfFunction.ll
The file was modifiedllvm/test/Analysis/BasicAA/modref.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/invariant.start.ll
The file was modifiedllvm/test/Other/new-pm-lto-defaults.ll
The file was modifiedllvm/test/Other/opt-O3-pipeline-enable-matrix.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/libcalls.ll
The file was modifiedllvm/test/Other/opt-O3-pipeline.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/crash.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-loops.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-overlap.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/launder.invariant.group.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-captures.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/combined-partial-overwrites.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/fence-todo.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-multipath.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/pr47285-not-overwritten-on-all-exit-paths.ll
The file was modifiedllvm/test/Other/new-pm-thinlto-defaults.ll
The file was modifiedllvm/test/Other/new-pm-defaults.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/mda-with-dbg-values.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-multipath-throwing.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-partial.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-throwing.ll
The file was modifiedclang/test/CodeGen/thinlto-distributed-newpm.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/simple-preservation.ll
The file was modifiedllvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/dominate.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/2016-07-17-UseAfterFree.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-memoryphis.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/int_sideeffect.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-memintrinsics.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/opt-pipeline.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/no-targetdata.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/memset-missing-debugloc.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/PartialStore2.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/OverwriteStoreEnd.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/cs-cs-aliasing.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/memset-unknown-sizes.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/atomic-todo.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/overlap.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/simple-todo.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/fence.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/OverwriteStoreBegin.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/tail-byval.ll
The file was modifiedllvm/test/Transforms/MemCpyOpt/memcpy.ll
The file was modifiedllvm/test/Transforms/Coroutines/ArgAddr.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/stats.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/merge-stores.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/operand-bundles.ll
The file was modifiedllvm/test/Other/opt-O2-pipeline.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/PartialStore.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/calloc-store.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-unreachable.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/free.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/memcpy-complete-overwrite.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/debuginfo.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-simple.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/X86/gather-null-pointer.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/noop-stores.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/2011-09-06-MemCpy.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/debug-counter.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/simple.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/memoryssa-scan-limit.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/multiblock-exceptions.ll
The file was modifiedllvm/test/Transforms/Coroutines/coro-retcon.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/memintrinsics.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/inst-limits.ll
The file was modifiedllvm/test/Transforms/DeadStoreElimination/MSSA/lifetime.ll
Commit 03f1516d6075f42dce95bcf9fde3f6fde97abd35 by i
[MemoryBuffer] Revert unintended MemoryBuffer change from D86996

Fixes SupportsTest MemoryBufferTest.mmapVolatileNoNull
The file was modifiedllvm/lib/Support/MemoryBuffer.cpp
Commit 3bc3983f229f9277d5bea3692b691f72ab8740dd by nemanja.i.ibm
Fix bot failure after ccb4124a4172

The test case has a check line for the option on a line that includes
the string lld surrounded by any characters. This causes failures
when said string is in the build path. What the test case presumably
means to test is the actual invocation of the LLD linker (i.e. a
linker that has that string as a suffix). This patch simply removes
the erroneous wildcard after the string.
The file was modifiedclang/test/Driver/hip-gz-options.hip
Commit 738bab743b5c6cfcf1a1feb116de9e35a3f1e326 by alexey.bataev
[OPENMP]Add support for allocate vars in untied tasks.

Local vars, marked with pragma allocate, mustbe allocate by the call of
the runtime function and cannot be allocated as other local variables.
Instead, we allocate a space for the pointer in private record and store
the address, returned by kmpc_alloc call in this pointer.
So, for untied tasks

#pragma omp task untied
   S s;
    #pragma omp allocate(s) allocator(allocator)
   s = x;
compiler generates something like this:
struct task_with_privates {
  S *ptr;

void entry(task_with_privates *p) {
  S *s = p->s;
  switch(partid) {
  case 1:
    p->s = (S*)kmpc_alloc();
    br exit;
  case 2:
    *s = x;
    br exit;
  case 2:
    br exit;

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D86558
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.h
The file was modifiedclang/lib/CodeGen/CGStmtOpenMP.cpp
The file was modifiedclang/test/OpenMP/allocate_codegen.cpp
The file was modifiedclang/test/OpenMP/parallel_private_codegen.cpp
The file was modifiedclang/test/OpenMP/for_linear_codegen.cpp
The file was modifiedclang/test/OpenMP/task_codegen.cpp
The file was modifiedclang/test/OpenMP/parallel_firstprivate_codegen.cpp
The file was modifiedclang/test/OpenMP/for_reduction_codegen_UDR.cpp
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/test/OpenMP/for_lastprivate_codegen.cpp
Commit 54e1bf115429fa28f9783da92f310a4ea991e7c4 by aeubanks
[LoopAccessAnalysis][NewPM] Fix tests to work under NPM

Pin RUN lines with -analyze to legacy PM, add corresponding NPM RUN lines.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D87662
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/memcheck-wrapping-pointers.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/nullptr.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/wrapping-pointer-versioning.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/forward-loop-independent.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/unsafe-and-rt-checks-convergent.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/backward-dep-different-types.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/resort-to-memchecks-only.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/underlying-objects-2.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/forward-loop-carried.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/unsafe-and-rt-checks.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/pr31098.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/memcheck-off-by-one-error.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/store-to-invariant-check2.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/memcheck-for-loop-invariant.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/multiple-strides-rt-memory-checks.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/pointer-with-unknown-bounds.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/underlying-objects-1.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/safe-with-dep-distance.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/number-of-memchecks.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/independent-interleaved.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/stride-access-dependence.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/non-wrapping-pointer.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/store-to-invariant-check1.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/store-to-invariant-check3.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/reverse-memcheck-bounds.ll
The file was modifiedllvm/test/Analysis/LoopAccessAnalysis/safe-no-checks.ll
Commit 6f66ad13c50ceeaee5c63b1ab47cb1d2a5390500 by aeubanks
[DependenceAnalysis][NewPM] Fix tests to work under NPM

All tests had corresponding NPM lines, simply pin non-NPM lines to legacy PM.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D87665
The file was modifiedllvm/test/Analysis/DependenceAnalysis/NonAffineExpr.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/UsefulGEP.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/ZIV.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/NonCanonicalizedSubscript.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/Banerjee.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/ExactSIV.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/SymbolicRDIV.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/WeakZeroDstSIV.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/PR21585.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/Preliminary.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/MIVCheckConst.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheck.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/Separability.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/Coupled.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/AA.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/SymbolicSIV.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/GCD.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/Invariant.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/BasePtrBug.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/WeakCrossingSIV.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/Constraints.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/Propagating.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/DADelin.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/ExactRDIV.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/StrongSIV.ll
The file was modifiedllvm/test/Analysis/DependenceAnalysis/WeakZeroSrcSIV.ll
Commit e0c7641de65fb4dc27fcc44b2e4f2cd570e58bed by aeubanks
[RegionInfo][NewPM] Fix RegionInfo tests to work under NPM

Pin RUN lines with -analyze to legacy PM, add corresponding NPM RUN line if missing.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D87658
The file was modifiedllvm/test/Analysis/RegionInfo/condition_simple.ll
The file was modifiedllvm/test/Analysis/RegionInfo/paper.ll
The file was modifiedllvm/test/Analysis/RegionInfo/exit_in_condition.ll
The file was modifiedllvm/test/Analysis/RegionInfo/infinite_loop_5_c.ll
The file was modifiedllvm/test/Analysis/RegionInfo/infinite_loop_5_b.ll
The file was modifiedllvm/test/Analysis/RegionInfo/loop_with_condition.ll
The file was modifiedllvm/test/Analysis/RegionInfo/infinite_loop_2.ll
The file was modifiedllvm/test/Analysis/RegionInfo/loops_2.ll
The file was modifiedllvm/test/Analysis/RegionInfo/next.ll
The file was modifiedllvm/test/Analysis/RegionInfo/loops_1.ll
The file was modifiedllvm/test/Analysis/RegionInfo/infinite_loop_3.ll
The file was modifiedllvm/test/Analysis/RegionInfo/condition_forward_edge.ll
The file was modifiedllvm/test/Analysis/RegionInfo/infinite_loop.ll
The file was modifiedllvm/test/Analysis/RegionInfo/mix_1.ll
The file was modifiedllvm/test/Analysis/RegionInfo/two_loops_same_header.ll
The file was modifiedllvm/test/Analysis/RegionInfo/block_sort.ll
The file was modifiedllvm/test/Analysis/RegionInfo/condition_complicated_2.ll
The file was modifiedllvm/test/Analysis/RegionInfo/infinite_loop_5_a.ll
The file was modifiedllvm/test/Analysis/RegionInfo/multiple_exiting_edge.ll
The file was modifiedllvm/test/Analysis/RegionInfo/outgoing_edge_1.ll
The file was modifiedllvm/test/Analysis/RegionInfo/bad_node_traversal.ll
The file was modifiedllvm/test/Analysis/RegionInfo/cond_loop.ll
The file was modifiedllvm/test/Analysis/RegionInfo/condition_complicated.ll
The file was modifiedllvm/test/Analysis/RegionInfo/outgoing_edge.ll
The file was modifiedllvm/test/Analysis/RegionInfo/infinite_loop_4.ll
The file was modifiedllvm/test/Analysis/RegionInfo/nested_loops.ll
The file was modifiedllvm/test/Analysis/RegionInfo/unreachable_bb.ll
The file was modifiedllvm/test/Analysis/RegionInfo/condition_same_exit.ll
Commit 3f69b2140f55ace97c3b7819eb9c19fc682da998 by aeubanks
[NewPM][opt] Fix -globals-aa not being recognized as alias analysis in NPM

Was missing MODULE_ALIAS_ANALYSIS, previously only FUNCTION_ALIAS_ANALYSIS was taken into account.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D87664
The file was modifiedllvm/test/Analysis/GlobalsModRef/comdat-ipo.ll
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
Commit 9853e84b54d2453f88490381c2ea37deeab1789d by aeubanks
[PostDominators][NewPM] Fix tests to work under NPM

Each test has a legacy PM pinned to legacy PM and a NPM RUN line.

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D87660
The file was modifiedllvm/test/Analysis/PostDominators/infinite-loop2.ll
The file was modifiedllvm/test/Analysis/PostDominators/infinite-loop3.ll
The file was modifiedllvm/test/Analysis/PostDominators/pr1098.ll
The file was modifiedllvm/test/Analysis/PostDominators/pr6047_d.ll
The file was modifiedllvm/test/Analysis/PostDominators/pr6047_a.ll
The file was modifiedllvm/test/Analysis/PostDominators/infinite-loop.ll
The file was modifiedllvm/test/Analysis/PostDominators/pr24415.ll
The file was modifiedllvm/test/Analysis/PostDominators/pr6047_c.ll
The file was modifiedllvm/test/Analysis/PostDominators/pr6047_b.ll
Commit d9c9a74d0dc5b64c7c8496294ed962d7ce332337 by Louis Dionne
[libc++] Add missing friend keyword

Otherwise, we're declaring a non-static member function, and that
gives errors in C++11 because of the change of semantics between
C++11 and C++14 for non-const constexpr member functions.

This was always intended to be a friend declaration.
The file was modifiedlibcxx/include/iterator
Commit 05134877e64ded64f6c3064173b98893b1ac5fb5 by craig.topper
[X86] Use Align in reduceMaskedLoadToScalarLoad/reduceMaskedStoreToScalarStore. Correct pointer info.

If we offset the pointer, we also need to offset the pointer info

Differential Revision: https://reviews.llvm.org/D87593
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/vmaskmov-offset.ll
Commit ca76d6e94a30b8fe11a63d3a55d3903c7cd25b5d by aeubanks
[Bugpoint][NewPM] Pin bugpoint to legacy PM

Bugpoint has lots of assumptions and hacks around the legacy PM, put off migrating it to NPM until later.
Fixes tests under BugPoint under NPM.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D87655
The file was modifiedllvm/tools/bugpoint/OptimizerDriver.cpp
The file was modifiedllvm/test/BugPoint/unsymbolized.ll
Commit 3d42d549554889ca182e1f3d31b23fa1383c6678 by flo
[ConstraintElimination] Add constraint elimination pass.

This patch is a first draft of a new pass that adds a more flexible way
to eliminate compares based on more complex constraints collected from
dominating conditions.

In particular, it aims at simplifying conditions of the forms below
using a forward propagation approach, rather than instcomine-style
ad-hoc backwards walking of def-use chains.

    if (x < y)
      if (y < z)
        if (x < z) <- simplify


    if (x + 2 < y)
        if (x + 1 < y) <- simplify assuming no wraps

The general approach is to collect conditions and blocks, sort them by
dominance and then iterate over the sorted list. Conditions are turned
into a linear inequality and add it to a system containing the linear
inequalities that hold on entry to the block. For blocks, we check each
compare against the system and see if it is implied by the constraints
in the system.

We also keep a stack of processed conditions and remove conditions from
the stack and the constraint system once they go out-of-scope (= do not
dominate the current block any longer).

Currently there still are the least the following areas for improvements

* Currently large unsigned constants cannot be added to the system
  (coefficients must be represented as integers)
* The way constraints are managed currently is not very optimized.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D84547
The file was modifiedllvm/test/Transforms/ConstraintElimination/geps.ll
The file was modifiedllvm/test/Transforms/ConstraintElimination/loops.ll
The file was modifiedllvm/test/Transforms/ConstraintElimination/dom.ll
The file was modifiedllvm/test/Transforms/ConstraintElimination/ugt-ule.ll
The file was modifiedllvm/test/Transforms/ConstraintElimination/mixed.ll
The file was modifiedllvm/include/llvm/Transforms/Scalar.h
The file was modifiedllvm/lib/Transforms/IPO/PassManagerBuilder.cpp
The file was addedllvm/lib/Transforms/Scalar/ConstraintElimination.cpp
The file was modifiedllvm/test/Transforms/ConstraintElimination/i128.ll
The file was modifiedllvm/test/Transforms/ConstraintElimination/ule.ll
The file was modifiedllvm/test/Transforms/ConstraintElimination/uge.ll
The file was modifiedllvm/test/Transforms/ConstraintElimination/geps.2d.ll
The file was modifiedllvm/lib/Transforms/Scalar/Scalar.cpp
The file was modifiedllvm/include/llvm/Analysis/ConstraintSystem.h
The file was modifiedllvm/include/llvm/InitializePasses.h
The file was modifiedllvm/lib/Transforms/Scalar/CMakeLists.txt
Commit 32a61531b8181b1fdfa058803444f73ae6ab29ff by llvmgnsyncbot
[gn build] Port 3d42d549554
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Transforms/Scalar/BUILD.gn
Commit 79f22b1f99fd72db9a45c387258d289791f2b9c0 by gclayton
Fix .debug_aranges parsing.

Code was added that used llvm error checking to parse .debug_aranges, but the error check after parsing the DWARFDebugArangesSet was reversed and was causing no error to be returned with no valid address ranges being actually used. This meant we always would fall back onto creating out own address ranges by parsing the compile unit's ranges. This was causing problems for cases where the DW_TAG_compile_unit had a single address range by using a DW_AT_low_pc and DW_AT_high_pc attribute pair (not using a DW_AT_ranges attribute), but the .debug_aranges had correct split ranges. In this case we would end up using the single range for the compile unit that encompassed all of the ranges from the .debug_aranges section and would cause address resolving issues in LLDB where address lookups would fail for certain addresses.

Differential Revision: https://reviews.llvm.org/D87626
The file was modifiedlldb/source/Plugins/SymbolFile/DWARF/DWARFDebugAranges.cpp
The file was modifiedlldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp
Commit d158e786ccd33f8c9fc3ab008dd9463e252fa36a by aeubanks
[DemandedBits][NewPM] Pin some tests to legacy PM

All tests have corresponding NPM RUN lines.
-analyze doesn't work under NPM.
The file was modifiedllvm/test/Analysis/DemandedBits/basic.ll
The file was modifiedllvm/test/Analysis/DemandedBits/add.ll
The file was modifiedllvm/test/Analysis/DemandedBits/vectors.ll
The file was modifiedllvm/test/Analysis/DemandedBits/intrinsics.ll
Commit 558e5c31b66e114f164ad798de1f26b49042ed5e by aeubanks
[Dominators][NewPM] Pin tests with -analyze to legacy PM

-analyze isn't supported in NPM. All affected tests have corresponding
NPM RUN line.
The file was modifiedllvm/test/Analysis/Dominators/basic.ll
The file was modifiedllvm/test/Analysis/Dominators/2006-10-02-BreakCritEdges.ll
Commit 583c8ce30c12511a814a1db2923b9809f2a15c54 by Louis Dionne
[libc++] Fix broken test for std::any and allocators

The test was not allocating the right number of bytes. This is my fault,
not Marshall's, as I was the one to write the tests for 39c879514170.
The file was modifiedlibcxx/test/libcxx/utilities/any/allocator.pass.cpp
Commit 69f98311ca42127df92527b6fc3be99841a15f12 by development
[ASTMatchers] extract public matchers from const-analysis into own patch

The analysis for const-ness of local variables required a view generally useful
matchers that are extracted into its own patch.

They are decompositionDecl and forEachArgumentWithParamType, that works
for calls through function pointers as well.

This is a reupload of https://reviews.llvm.org/D72505, that already landed,
but had to be reverted due to a GCC crash on powerpc

Because this took a long time to adress, i decided to redo this patch and
have a clean workflow.
I try to coordinate with someone that has a PPC to apply this patch and
test for the crash. If everything is fine, I intend to just commit.
If the crash is still happening, i hope to at least find the cause.

Differential Revision: https://reviews.llvm.org/D87588
The file was modifiedclang/lib/ASTMatchers/Dynamic/Registry.cpp
The file was modifiedclang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
The file was modifiedclang/docs/LibASTMatchersReference.html
The file was modifiedclang/include/clang/ASTMatchers/ASTMatchers.h
Commit f975ae4867d1fdfaba11a3ec7e479da8fbfd82d8 by zequanwu
[CodeGen][typeid] Emit typeinfo directly if type is known at compile-time

Differential Revision: https://reviews.llvm.org/D87425
The file was modifiedclang/include/clang/AST/ExprCXX.h
The file was modifiedclang/lib/AST/ExprCXX.cpp
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-typeid.cpp
The file was modifiedclang/lib/CodeGen/CGExprCXX.cpp
Commit 05aa997d511eed530305e2f3aa401584d0691186 by conanap
[PowerPC] Implement __int128 vector divide operations

This patch implements __int128 vector divide operations for ISA3.1.

Differential Revision: https://reviews.llvm.org/D85453
The file was modifiedllvm/test/CodeGen/PowerPC/p10-vector-divide.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
The file was modifiedclang/lib/Headers/altivec.h
The file was modifiedclang/test/CodeGen/builtins-ppc-p10vector.c
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrPrefix.td
Commit d417488ef5a6cd1089900defcd6d5ae5a1d47fd4 by dancgr
[AArch64][SVE] Add lowering for llvm fsqrt

Add the functionality to lower fsqrt for passthru variant

Reviewed By: paulwalker-arm

Differential Revision: https://reviews.llvm.org/D87707
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.h
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/AArch64/sve-fp.ll
Commit f1a3ab904439a63b21ba1c4521765c46630687c6 by snehasishk
[clang] Add a command line flag for the Machine Function Splitter.

This patch adds a command line flag for the machine function splitter
(added in rG94faadaca4e1).

Split machine functions using profile information (x86 ELF). On
other targets an error is emitted. If profile information is not
provided a warning is emitted notifying the user that profile
information is required.

Differential Revision: https://reviews.llvm.org/D87047
The file was addedclang/test/Driver/fsplit-machine-functions.c
The file was modifiedclang/include/clang/Basic/CodeGenOptions.def
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
Commit 7d6ca2ec57073b9eabe6808ff1fe0560586c5ffb by Matthew.Arsenault
InferAddressSpaces: Fix assert with unreachable code

Invalid IR in unreachable code is technically valid IR. In this case,
the address space of the value was never inferred, and we tried to
rewrite it with an invalid address space value which would assert.
The file was modifiedllvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
The file was addedllvm/test/Transforms/InferAddressSpaces/AMDGPU/unreachable-code-assert.ll
The file was addedllvm/test/Transforms/InferAddressSpaces/AMDGPU/self-phi.ll
Commit 38ecd6161993ea9632efe0c0bf304bf6c2dee98f by Matthew.Arsenault
[TableGen] Fix invalid comparison function `SizeOrder` in `getMatchingSubClassWithSubRegs`

Building LLVM with -DEXPENSIVE_CHECKS fails with the following error
message with libstdc++ in debug mode:

Error: comparison doesn't meet irreflexive requirements,
assert(!(a < a)).

The patch fixes the comparison function SizeOrder by returning false
when comparing two equal items.
The file was modifiedllvm/utils/TableGen/CodeGenRegisters.cpp
Commit 516a01b5f36d4188778a34202cd11856d70ac808 by srhines
Implement __isOSVersionAtLeast for Android

Add the implementation of __isOSVersionAtLeast for Android. Currently,
only the major version is checked against the API level of the platform
which is an integer. The API level is retrieved by reading the system
property ro.build.version.sdk (and optionally ro.build.version.codename
to see if the platform is released or not).

Patch by jiyong@google.com

Bug: 150860940
Bug: 134795810
Test: m

Reviewed By: srhines

Differential Revision: https://reviews.llvm.org/D86596
The file was modifiedcompiler-rt/lib/builtins/os_version_check.c
Commit 00ba1a3de7faad80f7bb75d07a1a5da09a009895 by gchatelet
[libc] remove useless headers
The file was modifiedlibc/src/string/memcpy.h
The file was modifiedlibc/src/string/memset.h
Commit 3b7f5166bd11fc6cbf96597d26753e8c3fc0e6ab by huihuiz
[SLPVectorizer][SVE] Skip scalable-vector instructions before vectorizeSimpleInstructions.

For scalable type, the aggregated size is unknown at compile-time.
Skip instructions with scalable type to ensure the list of instructions
for vectorizeSimpleInstructions does not contains any scalable-vector instructions.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D87550
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
The file was addedllvm/test/Transforms/SLPVectorizer/AArch64/insertelement.ll
Commit c19fda9aa073254c0979301bd57d875608329fa2 by gchatelet
[libc] use stddef instead of string header
The file was modifiedlibc/src/string/bzero.h
Commit 7d26d6a1b062f7ce820b02b39d102d5f8f15fa5f by Saleem Abdulrasool
Sema: add support for `__attribute__((__swift_bridged_typedef__))`

Extend the semantic attributes that clang processes for Swift to include
`swift_bridged_typedef`.  This attribute enables typedefs to be bridged
into Swift with a bridged name.

This is based on the work of the original changes in

Differential Revision: https://reviews.llvm.org/D87396
Reviewed By: Aaron Ballman
The file was addedclang/test/AST/attr-swift_bridged_typedef.mm
The file was modifiedclang/include/clang/Basic/Attr.td
The file was modifiedclang/include/clang/Basic/AttrDocs.td
The file was addedclang/test/AST/attr-swift_bridged_typedef.m
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was addedclang/test/SemaObjC/attr-swift_bridged_typedef.m
The file was modifiedclang/test/Misc/pragma-attribute-supported-attributes-list.test
Commit c3fd2a50ba1395b6c2240f6a688c6a1aa975a1fe by gchatelet
[libc] Remove special case for 8 and 16 bytes

They don't seem to gain much in real apps and its better to favor less branches and smaller code.
The file was modifiedlibc/src/string/x86/memcpy.cpp
The file was modifiedlibc/src/string/memcpy.cpp
Commit 609f5e050cea760694a46e126e5aa3f62660cae9 by diego.caballero
[mlir] Rename 'setInsertionPointAfter' to avoid ambiguity

Rename 'setInsertionPointAfter(Value)' API to avoid ambiguity with
'setInsertionPointAfter(Operation *)' for SingleResult operations which
implicitly convert to Value (see D86756).

Differential Revision: https://reviews.llvm.org/D87155
The file was modifiedmlir/lib/Dialect/Affine/Transforms/SuperVectorize.cpp
The file was modifiedmlir/include/mlir/IR/Builders.h
Commit 9e3842d60351f986d77dfe0a94f76e4fd895f188 by a.bataev
[OPENMP]Fix codegen for is_device_ptr component, captured by reference.

Need to map the component as TO instead of the literal, because need to
pass a reference to a component if the pointer is overaligned.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D84887
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntime.cpp
The file was modifiedclang/test/OpenMP/target_is_device_ptr_codegen.cpp
Commit c3e6054b07be1340fb255abe1e3c85b911710059 by huberjn
[OpenMP] Additional Information for Libomptarget Mappings

This patch adds additonal support for priting infromation from Libomptarget for
already existing maps and printing the final data mapped on the device at
device destruction.

Reviewers: jdoerfort gkistanova

Subscribers: guansong openmp-commits sstefan1 yaxunl

Tags: #OpenMP

Differential Revision: https://reviews.llvm.org/D87722
The file was modifiedopenmp/libomptarget/src/interface.cpp
The file was modifiedopenmp/libomptarget/src/private.h
The file was modifiedopenmp/libomptarget/src/device.cpp
Commit 7b4cc0961b142877794645576d2393af43c48069 by xun
[TSAN] Handle musttail call properly in EscapeEnumerator (and TSAN)

Call instructions with musttail tag must be optimized as a tailcall, otherwise could lead to incorrect program behavior.
When TSAN is instrumenting functions, it broke the contract by adding a call to the tsan exit function inbetween the musttail call and return instruction, and also inserted exception handling code.
This happend throguh EscapeEnumerator, which adds exception handling code and returns ret instructions as the place to insert instrumentation calls.
This becomes especially problematic for coroutines, because coroutines rely on tail calls to do symmetric transfers properly.
To fix this, this patch moves the location to insert instrumentation calls prior to the musttail call for ret instructions that are following musttail calls, and also does not handle exception for musttail calls.

Differential Revision: https://reviews.llvm.org/D87620
The file was modifiedllvm/lib/Transforms/Utils/EscapeEnumerator.cpp
The file was addedllvm/test/Instrumentation/ThreadSanitizer/tsan_musttail.ll
Commit 277de43d88c9d0d57235e3df617d462487e17e20 by Stanislav.Mekhanoshin
[AMDGPU] Unify intrinsic ret/nortn interface

We have a single noret intrinsic an a lot of special handling
around it. Declare it just as any other but do not define rtn
instructions itself instead.

Differential Revision: https://reviews.llvm.org/D87719
The file was modifiedllvm/include/llvm/IR/IntrinsicsAMDGPU.td
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/cgp-addressing-modes-gfx1030.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn.s.buffer.load.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/global-saddr-atomics.gfx908.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.atomic.fadd.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgcn-s-buffer-load.mir
The file was addedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.atomic.fadd-with-ret.ll
The file was modifiedllvm/lib/Target/AMDGPU/BUFInstructions.td
The file was modifiedllvm/lib/Target/AMDGPU/SIISelLowering.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructions.td
The file was modifiedllvm/lib/Target/AMDGPU/SIInstructions.td
The file was modifiedllvm/lib/Target/AMDGPU/SIInstrInfo.td
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
The file was modifiedllvm/test/CodeGen/AMDGPU/shl_add_ptr_global.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.atomic.fadd.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/llvm.amdgcn.atomic.fadd.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/llvm.amdgcn.struct.buffer.atomic.fadd.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.buffer.atomic.fadd.ll
The file was addedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.global.atomic.fadd-with-ret.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/buffer-intrinsics-mmo-offsets.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/fail-select-buffer-atomic-fadd.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/global-atomics-fp.ll
The file was modifiedllvm/lib/Target/AMDGPU/FLATInstructions.td
The file was modifiedllvm/test/CodeGen/AMDGPU/cgp-addressing-modes-gfx908.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.global.atomic.fadd.ll
Commit a4e35cc2ec1036832e7626191f8b9f0e3169477c by vkeles
GlobalISel: Add combines for G_TRUNC

The file was modifiedllvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll
The file was modifiedllvm/include/llvm/Target/GlobalISel/Combine.td
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/xnor.ll
The file was addedllvm/test/CodeGen/AArch64/GlobalISel/combine-trunc.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/shl.ll
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
Commit ae726fecae9a1cc9c50de5a9f6e860056f82c556 by Jan Korous
[SourceManager] Explicitly check for potential iterator underflow

Differential Revision: https://reviews.llvm.org/D86231
The file was modifiedclang/lib/Basic/SourceManager.cpp
Commit 61fc10d6a520f267e11009ce8fce88d73615796b by mtrofin
[ThinLTO] add post-thinlto-merge option to -lto-embed-bitcode

This will embed bitcode after (Thin)LTO merge, but before optimizations.
In the case the thinlto backend is called from clang, the .llvmcmd
section is also produced. Doing so in the case where the caller is the
linker doesn't yet have a motivation, and would require plumbing through
command line args.

Differential Revision: https://reviews.llvm.org/D87636
The file was addedclang/test/CodeGen/thinlto_embed_bitcode.ll
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
The file was modifiedllvm/test/LTO/X86/embed-bitcode.ll
The file was addedclang/test/CodeGen/Inputs/start-lib1.ll
The file was modifiedllvm/include/llvm/LTO/LTOBackend.h
The file was addedclang/test/CodeGen/Inputs/start-lib2.ll
The file was modifiedllvm/test/LTO/X86/Inputs/start-lib1.ll
The file was modifiedllvm/lib/LTO/LTOBackend.cpp
Commit 97203cfd6bae0388f9dd22ddca592737324a2c72 by aditya_nandakumar
[GISel] Add new GISel combiners for G_MUL


Patch adds two new GICombinerRules, one for G_MUL(X, 1) and another for G_MUL(X, -1).
G_MUL(X, 1) is an identity combine, and G_MUL(X, -1) gets replaced with G_SUB(0, X).
Patch additionally adds new combiner tests for the AArch64 target to test these
new combiner rules, as well as updates AMDGPU GISel tests.

Patch by mkitzan
The file was addedllvm/test/CodeGen/AArch64/GlobalISel/combine-mul.mir
The file was modifiedllvm/include/llvm/Target/GlobalISel/Combine.td
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
The file was modifiedllvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
Commit 2ea4c2c598b7c6f95b5d4db747bdf72770e586df by aktoon
[BFI] Make BFI information available through loop passes inside LoopStandardAnalysisResults

~~D65060 uncovered that trying to use BFI in loop passes can lead to non-deterministic behavior when blocks are re-used while retaining old BFI data.~~

~~To make sure BFI is preserved through loop passes a Value Handle (VH) callback is registered on blocks themselves. When a block is freed it now also wipes out the accompanying BFI entry such that stale BFI data can no longer persist resolving the determinism issue. ~~

~~An optimistic approach would be to incrementally update BFI information throughout the loop passes rather than only invalidating them on removed blocks. The issues with that are:~~
~~1. It is not clear how BFI information should be incrementally updated: If a block is duplicated does its BFI information come with? How about if it's split/modified/moved around? ~~
~~2. Assuming we can address these problems the implementation here will be a massive undertaking. ~~

~~There's a known need of BFI in LICM analysis which requires correct but not incrementally updated BFI data. A follow-up change can register BFI in all loop passes so this preserved but potentially lossy data is available to any loop pass that wants it.~~

See: D75341 for an identical implementation of preserving BFI via VH callbacks. The previous statements do still apply but this change no longer has to be in this diff because it's already upstream 😄 .

This diff also moves BFI to be a part of LoopStandardAnalysisResults since the previous method using getCachedResults now (correctly!) statically asserts (D72893) that this data isn't static through the loop passes.

Ninja check

Reviewed By: asbirlea, nikic

Differential Revision: https://reviews.llvm.org/D86156
The file was modifiedllvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LoopDistribute.cpp
The file was modifiedllvm/unittests/Transforms/Scalar/LoopPassManagerTest.cpp
The file was modifiedllvm/test/Other/opt-O3-pipeline-enable-matrix.ll
The file was modifiedllvm/lib/Transforms/Scalar/LoopUnswitch.cpp
The file was modifiedllvm/test/Other/opt-O2-pipeline.ll
The file was modifiedllvm/test/Other/opt-O3-pipeline.ll
The file was modifiedllvm/test/Other/opt-Os-pipeline.ll
The file was modifiedllvm/include/llvm/Analysis/LoopAnalysisManager.h
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LICM.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/include/llvm/Transforms/Scalar/LoopPassManager.h
The file was modifiedllvm/lib/Transforms/Utils/LoopVersioning.cpp
Commit 50ee05ab65db2ab262436ee0f92f7888607a89f3 by alexandre.ganea
[llvm][cmake] Change LLVM_INTEGRATED_CRT_ALLOC to a path instead of a boolean

Differential Revision: https://reviews.llvm.org/D87609
The file was modifiedllvm/CMakeLists.txt
Commit 79378b1b757d5c981e60320f5a735f3e356557a0 by vkeles
GlobalISel: Fix a failing combiner test

test/CodeGen/AArch64/GlobalISel/combine-trunc.mir was failing
due to the different order for evaluating function arguments.
This patch updates the related code to fix the issue.
The file was modifiedllvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
Commit 91332c4dbb033f7d1ffa1a9632012d88b08661c4 by aeubanks
[CGSCC][NewPM] Fix adding mutually recursive new functions

When adding a new function via addNewFunctionIntoRefSCC(), it creates a
new node and immediately populates the edges. Since populateSlow() calls
G->get() on all referenced functions, it will create a node (but not
populate it) for functions that haven't yet been added. If we add two
mutually recursive functions, the assert that the node should never have
been created will fire when the second function is added. So here we
remove that assert since the node may have already been created (but not
yet populated).

createNode() is only called from addNewFunctionInto{,Ref}SCC().


Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D87623
The file was modifiedllvm/lib/Analysis/LazyCallGraph.cpp
The file was modifiedllvm/unittests/Analysis/CGSCCPassManagerTest.cpp
Commit ffe9986de4297fdeddcd0b0b9bac2a28c45f661b by Jessica Paquette
[AArch64][GlobalISel] Refactor + improve CMN, ADDS, and ADD emit functions

These functions were extremely similar:

- `emitADD`
- `emitADDS`
- `emitCMN`

Refactor them a little, introducing a more generic `emitInstr` function to
do most of the work.

Also add support for the immediate + shifted register addressing modes in each
of them.

Update select-uaddo.mir to show that selecing ADDS now supports folding
immediates + shifts. (I don't think this can impact CMN, because the CMN checks
require a G_SUB with a non-constant on the RHS.)

This is around a 0.02% code size improvement on CTMark at -O3.

Differential Revision: https://reviews.llvm.org/D87529
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/select-uaddo.mir
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
Commit 2c391a5a14aeb34e970aba85c5aa540656fe47ca by aktoon
[LICM] Make Loop ICM profile aware again

D65060 was reverted because it introduced non-determinism by using BFI counts from already freed blocks. The parent of this revision fixes that by using a VH callback on blocks to prevent this from happening and makes sure BFI data is passed correctly in LoopStandardAnalysisResults.

This re-introduces the previous optimization of using BFI data to prevent LICM from hoisting/sinking if the instruction will end up moving to a colder block.

Internally at Facebook this change results in a ~7% win in a CPU related metric in one of our big services by preventing hoisting cold code into a hot pre-header like the added test case demonstrates.

ninja check

Reviewed By: asbirlea

Differential Revision: https://reviews.llvm.org/D87551
The file was modifiedllvm/include/llvm/Transforms/Utils/LoopUtils.h
The file was modifiedllvm/lib/Transforms/Scalar/LICM.cpp
The file was addedllvm/test/Transforms/LICM/no-hoist-prof.ll
The file was modifiedllvm/test/Transforms/LICM/sink.ll
The file was addedllvm/test/Transforms/LICM/Inputs/no-hoist-prof.prof
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
Commit 056534dc2b15ed1d276bead76f054cc7ac9d2bf1 by aktoon
SVML support for log10, sqrt

Although LLVM supports vectorization of loops containing log10/sqrt, it did not support using SVML implementation of it. Added support so that when clang is invoked with -fveclib=SVML now an appropriate SVML library log2 implementation will be invoked.

Follow up on: https://reviews.llvm.org/D77114

Added unit tests to svml-calls.ll, svml-calls-finite.ll. Can be run with llvm-lint.
Created a simple c++ file that tests log10/sqrt, and used clang+ to build it, and output final assembly.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D87169
The file was modifiedllvm/include/llvm/Analysis/VecFuncs.def
The file was modifiedllvm/test/Transforms/LoopVectorize/X86/svml-calls-finite.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/X86/svml-calls.ll
The file was modifiedllvm/test/Transforms/Util/add-TLI-mappings.ll
Commit f7aa1563eb5ff00416fba373073ba19832b6fc34 by aeubanks
[LowerSwitch][NewPM] Port lowerswitch to NPM

Reviewed By: ychen

Differential Revision: https://reviews.llvm.org/D87726
The file was modifiedllvm/lib/Transforms/Utils/FixIrreducible.cpp
The file was modifiedllvm/test/Transforms/LowerSwitch/feature.ll
The file was modifiedllvm/include/llvm/InitializePasses.h
The file was modifiedllvm/lib/Passes/PassRegistry.def
The file was modifiedllvm/lib/Transforms/Utils/Utils.cpp
The file was modifiedllvm/lib/Transforms/Utils/UnifyLoopExits.cpp
The file was modifiedllvm/lib/Transforms/Utils/LowerSwitch.cpp
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedllvm/lib/Transforms/Scalar/StructurizeCFG.cpp
The file was addedllvm/include/llvm/Transforms/Utils/LowerSwitch.h
Commit ba12e77ec16b38a4498610c6b8cdeb1a7e8a6aae by aeubanks
[NewPM] Port strip* passes to NPM

strip-nondebug and strip-debug-declare have no existing associated tests

Reviewed By: ychen

Differential Revision: https://reviews.llvm.org/D87639
The file was modifiedllvm/lib/Passes/PassRegistry.def
The file was modifiedllvm/test/Transforms/StripSymbols/2007-01-15-llvm.used.ll
The file was addedllvm/include/llvm/Transforms/IPO/StripSymbols.h
The file was modifiedllvm/lib/Transforms/IPO/StripSymbols.cpp
The file was modifiedllvm/test/Transforms/StripSymbols/strip-dead-debug-info.ll
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
Commit 5f4abb7fab1c6a87f059ed8732fd12b237f4805d by kparzysz
[Hexagon] Replace incorrect pattern for vpackl HWI32 -> HVi8

V6_vdealb4w is not correct for pairs, use V6_vpackeh/V6_vpackeb instead.
The file was modifiedllvm/lib/Target/Hexagon/HexagonPatternsHVX.td
The file was modifiedllvm/test/CodeGen/Hexagon/autohvx/widen-trunc.ll
The file was modifiedllvm/test/CodeGen/Hexagon/autohvx/isel-widen-truncate-pair.ll