FailedChanges

Summary

  1. [InstSimplify] add tests for freeze(constexpr); NFC (details)
  2. [ARM] Fold VMOVrh VLDR to LDRH (details)
  3. [lldb/Reproducers] Collect files imported by command script import (details)
  4. [gn build] Port 49e5a97ec36 (details)
  5. [gn build] (manually) port 8140f6bcde4 (details)
  6. [gn build] (manually) port 8140f6bcde4 better (details)
  7. Revert "Include static prof data when collecting loop BBs" (details)
  8. [gn build] Port b91905a2637 (details)
  9. [lldb] Remove some debugging printfs from ITSession code (details)
  10. [ValueTracking] improve undef/poison analysis for constant vectors (details)
  11. AMDGPU/GlobalISel: Fix smrd loads of v4i64 (details)
  12. AMDGPU/GlobalISel: Add some more tests for add3 folding (details)
  13. AMDGPU/GlobalISel: Add more tests for add3 folding (details)
  14. [X86][AVX] Add some v32i16 to v32i8 style truncation shuffle tests (details)
  15. [SelectionDAG] Don't crash when freezing illegal float types (details)
  16. [DivRemPairs] Freeze operands if they can be undef values (details)
  17. [lit] NFC: Document missing result codes (details)
  18. [libomptarget][nfc] Explicitly static function scope shared variables (details)
  19. NFC: Fix typos in TestingGuide documentation (details)
  20. [DWARF] Emit DW_AT_call_pc for tail calls (details)
  21. [lldb/DWARF] Use DW_AT_call_pc to determine artificial frame address (details)
  22. [lit] Allow passing extra commands to executeShTest (details)
  23. Re-land "Avoid emitting unreachable SP adjustments after `throw`" (details)
  24. [mlir] Revamp operation documentation generation (details)
  25. [lldb] Don't dump the frame in SBTarget::EvaluateExpression in LLDB_CONFIGURATION_DEBUG (details)
  26. [lldb][NFC] Always update m_cache_{hits/misses} in FormatCache (details)
  27. [VectorCombine] add tests for bitcast (shuffle); NFC (details)
  28. Revert "[lldb/DWARF] Use DW_AT_call_pc to determine artificial frame address" (details)
  29. [lldb] Always log if acquiring packet sequence mutex fails (details)
  30. [libc++] NFC: Reuse the TEST_CONCAT macro instead of reimplementing one (details)
  31. [CodeGen] Add an alignment attribute to all sret parameters (details)
  32. [X86] Disable autoupgrade support for avx512.mask.broadcasti32x2.* and avx512.mask.broadcastf32x2.*. (details)
  33. [lldb/DWARF] Reland: Use DW_AT_call_pc to determine artificial frame address (details)
  34. [mlir] Clarify constraint on derived attribute (details)
  35. [Darwin] Add another hint to find the kernel. NFC. (details)
  36. Revert "Convert a reachable llvm_unreachable into an assert." (details)
  37. [Attributor] Use knowledge retained in llvm.assume (operand bundles) (details)
  38. [AArch64][GlobalISel] Don't localize TLS G_GLOBAL_VALUEs on Darwin. (details)
  39. [test][clang][driver] Add required features. (details)
  40. [clang codegen] Clean up handling of vectors with trivial-auto-var-init. (details)
  41. [GWP-ASan] Only pack frames that are stored. (details)
  42. [libc++] Build the dylib with C++17 to allow aligned new/delete (details)
Commit 6c3c7a0dd645f4b6e1169dc0f4163f227aca21f4 by spatel
[InstSimplify] add tests for freeze(constexpr); NFC
The file was modifiedllvm/test/Transforms/InstSimplify/freeze.ll
Commit f8c79b94af710dbce35098bc23021ad88ba54966 by david.green
[ARM] Fold VMOVrh VLDR to LDRH

This adds a simple fold to combine VMOVrh load to a integer load.
Similar to what is already performed for BITCAST, but needs to account
for the types being of different sizes, creating an zero extending load.

Differential Revision: https://reviews.llvm.org/D76485
The file was modifiedllvm/test/CodeGen/Thumb2/mve-float16regloops.ll
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.cpp
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vcmpfr.ll
Commit 1f80e51546bf2bf77982fd013519631f4c86898b by Jonas Devlieghere
[lldb/Reproducers] Collect files imported by command script import

Files imported by the script interpreter aren't opened by LLDB so they
don't end up in the reproducer. The solution is to explicitly add them
to the FileCollector.

Differential revision: https://reviews.llvm.org/D76626
The file was addedlldb/test/Shell/Reproducer/TestLuaImport.test
The file was modifiedlldb/source/Host/common/FileSystem.cpp
The file was modifiedlldb/include/lldb/Host/FileSystem.h
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp
The file was addedlldb/test/Shell/Reproducer/TestPythonImport.test
The file was addedlldb/test/Shell/Reproducer/Inputs/foo.lua
The file was addedlldb/test/Shell/Reproducer/Inputs/foo.py
Commit 5d29aebf87841d2ae772d32f3940b2bebf633db7 by thakis
[gn build] Port 49e5a97ec36
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/Support/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn
Commit e322108667622b2c29f26ef630ce837bcd2cf721 by thakis
[gn build] (manually) port 8140f6bcde4
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/BUILD.gn
Commit 9ca6334c336b0ca270e06e988d5bcb267e2f1f94 by thakis
[gn build] (manually) port 8140f6bcde4 better
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/scudo/standalone/BUILD.gn
Commit c3417592c847b8bd67deab21bbe6d62a49bde234 by yamauchi
Revert "Include static prof data when collecting loop BBs"

This reverts commit 129c911efaa492790c251b3eb18e4db36b55cbc5.

Due to an internal benchmark regression.
The file was modifiedllvm/test/CodeGen/X86/ragreedy-bug.ll
The file was removedllvm/test/CodeGen/X86/block-placement-2.ll
The file was modifiedllvm/include/llvm/CodeGen/MachineLoopInfo.h
The file was modifiedllvm/test/CodeGen/X86/block-placement.ll
The file was modifiedllvm/lib/CodeGen/MachineLoopInfo.cpp
The file was modifiedllvm/test/CodeGen/Hexagon/prof-early-if.ll
The file was modifiedllvm/test/CodeGen/X86/move_latch_to_loop_top.ll
The file was modifiedllvm/lib/CodeGen/MachineBlockPlacement.cpp
Commit 26d4b5514a997ef6b48f119fc93a04ae18d00ad9 by llvmgnsyncbot
[gn build] Port b91905a2637
The file was modifiedllvm/utils/gn/secondary/lld/COFF/BUILD.gn
Commit b8dab9b3d5b9b75f5ec9b8fed3e1c0586a82e3bf by Raphael Isemann
[lldb] Remove some debugging printfs from ITSession code

Summary:
This seems only useful for debugging and it's just plainly printf'ing to the console instead
of some log, so let's remove this.

Reviewers: #lldb, JDevlieghere

Reviewed By: JDevlieghere

Subscribers: JDevlieghere

Differential Revision: https://reviews.llvm.org/D76699
The file was modifiedlldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
Commit 88b493a8382a0ce1a9378fbb114021d6d442ea51 by spatel
[ValueTracking] improve undef/poison analysis for constant vectors

Differential Revision: https://reviews.llvm.org/D76702
The file was modifiedllvm/lib/Analysis/ValueTracking.cpp
The file was modifiedllvm/test/Transforms/InstSimplify/freeze.ll
Commit 26ebc51a34eaeb75ea2cc2c28cdd3caab04f587b by arsenm2
AMDGPU/GlobalISel: Fix smrd loads of v4i64
The file was modifiedllvm/lib/Target/AMDGPU/SMInstructions.td
The file was modifiedllvm/lib/Target/AMDGPU/SIRegisterInfo.td
Commit 2ea46051055b37faf95c58daad57608bb7610f58 by arsenm2
AMDGPU/GlobalISel: Add some more tests for add3 folding

These currently fail to form add3 due to the pointer type, but they
should be handle.
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-pattern-add3.mir
Commit bb3aa09b15a0724d524ec286f182137ef0960704 by arsenm2
AMDGPU/GlobalISel: Add more tests for add3 folding

Forget to squash into 2ea46051055b37faf95c58daad57608bb7610f58
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-pattern-add3.mir
Commit 0c24adcc94beb8eadf8795ea6f59bfd8974602f2 by llvm-dev
[X86][AVX] Add some v32i16 to v32i8 style truncation shuffle tests
The file was modifiedllvm/test/CodeGen/X86/vector-shuffle-256-v32.ll
Commit 0019c2f194a5e1f4cd65c5284e204328cc40ab3d by benny.kra
[SelectionDAG] Don't crash when freezing illegal float types
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
The file was modifiedllvm/test/CodeGen/X86/freeze.ll
Commit 49f75132bcdfcbc23010252e04e43fe0278ae1e7 by aqjune
[DivRemPairs] Freeze operands if they can be undef values

Summary:
DivRemPairs is unsound with respect to undef values.

```
      // bb1:
      //   %rem = srem %x, %y
      // bb2:
      //   %div = sdiv %x, %y
      // -->
      // bb1:
      //   %div = sdiv %x, %y
      //   %mul = mul %div, %y
      //   %rem = sub %x, %mul
```

If X can be undef, X should be frozen first.
For example, let's assume that Y = 1 & X = undef:
```
   %div = sdiv undef, 1 // %div = undef
   %rem = srem undef, 1 // %rem = 0
=>
   %div = sdiv undef, 1 // %div = undef
   %mul = mul %div, 1   // %mul = undef
   %rem = sub %x, %mul  // %rem = undef - undef = undef
```
http://volta.cs.utah.edu:8080/z/m7Xrx5

Same for Y. If X = 1 and Y = (undef | 1), %rem in src is either 1 or 0,
but %rem in tgt can be one of many integer values.

This resolves https://bugs.llvm.org/show_bug.cgi?id=42619 .

This miscompilation disappears if undef value is removed, but it may take a while.
DivRemPair happens pretty late during the optimization pipeline, so this optimization seemed as a good candidate to fix without major regression using freeze than other broken optimizations.

Reviewers: spatel, lebedev.ri, george.burgess.iv

Reviewed By: spatel

Subscribers: wuzish, regehr, nlopes, nemanjai, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D76483
The file was modifiedllvm/test/Transforms/DivRemPairs/PowerPC/div-rem-pairs.ll
The file was modifiedllvm/lib/Transforms/Scalar/DivRemPairs.cpp
The file was modifiedllvm/test/Transforms/DivRemPairs/PowerPC/div-expanded-rem-pair.ll
The file was modifiedllvm/test/Transforms/DivRemPairs/X86/div-rem-pairs.ll
Commit 83346a4077b32e730a84d8a9448b8855282f2710 by Louis Dionne
[lit] NFC: Document missing result codes

These result codes already exist, but they were not documented. I assume
this is an oversight when adding these result codes.
The file was modifiedllvm/docs/CommandGuide/lit.rst
Commit 0813f41005fddac8cc41b42fa5e918d9b049c60c by jonathanchesterfield
[libomptarget][nfc] Explicitly static function scope shared variables

Summary:
[libomptarget][nfc] Explicitly static function scope shared variables

`__shared__` in CUDA implies static in function scope. See e.g. D.2.1.1
in CUDA_C_Programming_Guide.pdf,
http://developer.download.nvidia.com/compute/DevZone/docs/html/C/doc/

This is surprising for non-cuda developers, see e.g. D73239 where I thought
local variables would be thread local.

Tested by IR diff of libomptarget.bc (no change), running in tree tests,
and binary diff of the nvcc static archives (no significant change).

Reviewers: jdoerfert, ABataev, grokos

Reviewed By: jdoerfert

Subscribers: openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D76713
The file was modifiedopenmp/libomptarget/deviceRTLs/common/src/reduction.cu
Commit c5f4b728353313346c707ffc83f5aff90e35e71c by Louis Dionne
NFC: Fix typos in TestingGuide documentation
The file was modifiedllvm/docs/TestingGuide.rst
Commit f7052da6db8f85814adb2e1a6742d607e774bb88 by Vedant Kumar
[DWARF] Emit DW_AT_call_pc for tail calls

Record the address of a tail-calling branch instruction within its call
site entry using DW_AT_call_pc. This allows a debugger to determine the
address to use when creating aritificial frames.

This creates an extra attribute + relocation at tail call sites, which
constitute 3-5% of all call sites in xnu/clang respectively.

rdar://60307600

Differential Revision: https://reviews.llvm.org/D76336
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
The file was modifiedllvm/include/llvm/DWARFLinker/DWARFLinker.h
The file was addedllvm/test/tools/dsymutil/X86/Inputs/tail-call.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
The file was addedllvm/test/tools/dsymutil/X86/Inputs/tail-call.macho.x86_64.o
The file was modifiedllvm/lib/DWARFLinker/DWARFLinker.cpp
The file was addedllvm/test/tools/dsymutil/X86/tail-call-linking.test
The file was modifiedllvm/test/DebugInfo/MIR/X86/call-site-gnu-vs-dwarf5-attrs.mir
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
The file was modifiedllvm/test/DebugInfo/X86/dwarf-callsite-related-attrs.ll
The file was addedllvm/test/tools/dsymutil/X86/Inputs/tail-call.macho.x86_64
Commit 6905394d153960ded3a7b884a9747ed2d4a6e8d8 by Vedant Kumar
[lldb/DWARF] Use DW_AT_call_pc to determine artificial frame address

lldb currently guesses the address to use when creating an artificial
frame (i.e., a frame constructed by determining the sequence of (tail)
calls which must have happened).

Guessing the address creates problems -- use the actual address provided
by the DW_AT_call_pc attribute instead.

Depends on D76336.

rdar://60307600

Differential Revision: https://reviews.llvm.org/D76337
The file was modifiedlldb/source/Symbol/Function.cpp
The file was modifiedlldb/include/lldb/Symbol/Function.h
The file was modifiedlldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
The file was modifiedlldb/source/Target/StackFrameList.cpp
The file was modifiedlldb/test/API/functionalities/tail_call_frames/unambiguous_sequence/main.cpp
Commit 8f64b02d336a2197ce948026f5b2008b68d73a58 by Louis Dionne
[lit] Allow passing extra commands to executeShTest

This allows creating custom test formats on top of `executeShTest` that
inject commands at the beginning of the file being parsed, without
requiring these commands to physically appear in the test file itself.

For example, one could define a test format that prints out additional
debug information at the beginning of each test. More realistically,
this has been used to define custom test formats like one that supports
compilation failure tests (e.g. with the extension `compile.fail.cpp`)
by injecting a command that calls the compiler on the file itself and
expects it to fail.

Without this change, the only alternative is to create a temporary file
with the same content as the original test, then prepend the desired
`// RUN:` lines to that file, and call `executeShTest` on that file
instead. This is both slow and cumbersome to do.

Differential Revision: https://reviews.llvm.org/D76290
The file was addedllvm/utils/lit/tests/Inputs/shtest-inject/test-empty.txt
The file was addedllvm/utils/lit/tests/Inputs/shtest-inject/test-many.txt
The file was modifiedllvm/utils/lit/lit/TestRunner.py
The file was addedllvm/utils/lit/tests/shtest-inject.py
The file was addedllvm/utils/lit/tests/Inputs/shtest-inject/lit.cfg
The file was addedllvm/utils/lit/tests/Inputs/shtest-inject/test-one.txt
Commit 597718aae017a870e99cdb37b3bc10d8dfa58a25 by rnk
Re-land "Avoid emitting unreachable SP adjustments after `throw`"

This reverts commit 4e0fe038f438ae1679eae9e156e1f248595b2373. Re-lands
65b21282c710afe9c275778820c6e3c1cf46734b.

After landing 5ff5ddd0adc89f8827b345577bbb3e7eb74fc644 to add int3 into
trailing unreachable blocks, we can now remove these extra stack
adjustments without confusing the Win64 unwinder. See
https://llvm.org/45064#c4 or X86AvoidTrailingCall.cpp for a full
explanation.

Fixes PR45064.
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/noreturn-call-win64.ll
The file was modifiedllvm/lib/Target/X86/X86FrameLowering.cpp
Commit 1a083f027f33f4014247df4c0e757e23d5cdab64 by riddleriver
[mlir] Revamp operation documentation generation

Summary:
This revisions performs several cleanups to the generated dialect documentation:
* Standardizes format of attributes/operands/results sections
* Splits out operation/type/dialect documentation generation to allow for composing generated and hand-written documentation
* Add section for declarative assembly syntax and successors
* General cleanup

Differential Revision: https://reviews.llvm.org/D76573
The file was modifiedmlir/tools/mlir-tblgen/OpFormatGen.cpp
The file was modifiedmlir/docs/Dialects/Vector.md
The file was modifiedmlir/docs/CreatingADialect.md
The file was modifiedmlir/include/mlir/Dialect/GPU/CMakeLists.txt
The file was modifiedmlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt
The file was modifiedmlir/tools/mlir-tblgen/OpDocGen.cpp
The file was modifiedmlir/include/mlir/Dialect/Affine/IR/CMakeLists.txt
The file was modifiedmlir/include/mlir/Dialect/Quant/CMakeLists.txt
The file was modifiedmlir/include/mlir/Dialect/LoopOps/CMakeLists.txt
The file was modifiedmlir/include/mlir/Dialect/OpenMP/CMakeLists.txt
The file was modifiedmlir/cmake/modules/AddMLIR.cmake
The file was modifiedmlir/lib/TableGen/Operator.cpp
The file was modifiedmlir/include/mlir/Dialect/SPIRV/CMakeLists.txt
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/CMakeLists.txt
The file was modifiedmlir/include/mlir/Dialect/FxpMathOps/CMakeLists.txt
The file was modifiedmlir/include/mlir/Dialect/Vector/CMakeLists.txt
The file was modifiedmlir/include/mlir/TableGen/Operator.h
The file was modifiedmlir/docs/OpDefinitions.md
Commit aef982e35acd2a0c4f6064308601658745e78cfc by Raphael Isemann
[lldb] Don't dump the frame in SBTarget::EvaluateExpression in LLDB_CONFIGURATION_DEBUG

Summary:
Dumping the frame using the user-set format could cause that a debug LLDB doesn't behave as a release LLDB,
which could potentially break replaying a reproducer.

Also it's kinda strange that the frame format set by the user is used in the internal log output.

Reviewers: JDevlieghere

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D76685
The file was modifiedlldb/source/API/SBTarget.cpp
Commit 6b6a779ca8ce4025ed0a38fbcfcb6c07334ace57 by Raphael Isemann
[lldb][NFC] Always update m_cache_{hits/misses} in FormatCache

Summary:
These two variables are only incremented under LLDB_CONFIGURATION_DEBUG but their
value is always logged when verbose lldb formatter logging is enabled, which causes that our
cache hit/miss log looks like this in non-Debug builds:

```
Cache hits: 0 - Cache Misses: 0
...
Cache hits: 0 - Cache Misses: 0
...
Cache hits: 0 - Cache Misses: 0
```

This just always increments those two counters independent of build mode.

Reviewers: JDevlieghere

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D76687
The file was modifiedlldb/include/lldb/DataFormatters/FormatCache.h
The file was modifiedlldb/source/DataFormatters/FormatCache.cpp
Commit c84446f4e9a86d7edfae8e18877e59f048733bee by spatel
[VectorCombine] add tests for bitcast (shuffle); NFC
The file was addedllvm/test/Transforms/VectorCombine/X86/shuffle.ll
Commit 0a9b91c390b281e90e51d5839557c5a189dd5401 by Vedant Kumar
Revert "[lldb/DWARF] Use DW_AT_call_pc to determine artificial frame address"

This reverts commit 6905394d153960ded3a7b884a9747ed2d4a6e8d8. The
changed test is failing on Debian/x86_64, possibly because lldb is
subtracting an offset from the DW_AT_call_pc address used for the
artificial frame:

http://lab.llvm.org:8011/builders/lldb-x86_64-debian/builds/7171/steps/test/logs/stdio

/home/worker/lldb-x86_64-debian/lldb-x86_64-debian/llvm-project/lldb/test/API/functionalities/tail_call_frames/unambiguous_sequence/main.cpp:6:17: error: CHECK-NEXT: expected string not found in input
// CHECK-NEXT: frame #1: 0x{{[0-9a-f]+}} a.out`func3() at main.cpp:14:3 [opt] [artificial]
                ^
<stdin>:3:2: note: scanning from here
frame #1: 0x0000000000401127 a.out`func3() at main.cpp:13:4 [opt] [artificial]
The file was modifiedlldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
The file was modifiedlldb/include/lldb/Symbol/Function.h
The file was modifiedlldb/test/API/functionalities/tail_call_frames/unambiguous_sequence/main.cpp
The file was modifiedlldb/source/Symbol/Function.cpp
The file was modifiedlldb/source/Target/StackFrameList.cpp
Commit 0ccc4de42eae92d5a7a1b67b29d7921c7f144b8d by Raphael Isemann
[lldb] Always log if acquiring packet sequence mutex fails

Summary:
Currently we only log in debug builds but I don't see why we would do this as this is neither
expensive and seems useful.

I looked into the git history of this code and it seems originally there was also an assert here
and the logging here was the #else branch branch for non-Debug builds.

Reviewers: #lldb, labath

Reviewed By: labath

Subscribers: JDevlieghere

Differential Revision: https://reviews.llvm.org/D76698
The file was modifiedlldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
Commit 43a6d285bfead762ac472a6e62beedc9f88bce89 by Louis Dionne
[libc++] NFC: Reuse the TEST_CONCAT macro instead of reimplementing one
The file was modifiedlibcxx/test/support/filesystem_test_helper.h
Commit de98cf92e301ab559a7417f1eca5cfa53624c9e1 by erik.pilkington
[CodeGen] Add an alignment attribute to all sret parameters

This fixes a miscompile when the parameter is actually underaligned.
rdar://58316406

Differential revision: https://reviews.llvm.org/D74183
The file was modifiedclang/test/CodeGenObjC/direct-method.m
The file was modifiedclang/test/CodeGen/ppc64le-aggregates.c
The file was modifiedclang/lib/CodeGen/CGCall.cpp
The file was modifiedclang/test/CodeGenCXX/conditional-gnu-ext.cpp
The file was modifiedclang/test/CodeGen/x86_64-arguments-win32.c
The file was modifiedclang/test/CodeGen/blocks.c
The file was modifiedclang/test/CodeGen/riscv64-lp64-lp64f-lp64d-abi.c
The file was modifiedclang/test/CodeGen/systemz-abi-vector.c
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-eh-cleanups.cpp
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-byval-sret.cpp
The file was modifiedclang/test/CodeGenObjCXX/objc-struct-cxx-abi.mm
The file was modifiedclang/test/CodeGen/riscv32-ilp32f-abi.c
The file was modifiedclang/test/CodeGen/ppc64-vector.c
The file was modifiedclang/test/Modules/templates.mm
The file was modifiedclang/test/CodeGenCXX/thiscall-struct-return.cpp
The file was modifiedclang/test/CodeGenCXX/call-with-static-chain.cpp
The file was modifiedclang/test/CodeGenCXX/wasm-args-returns.cpp
The file was modifiedclang/test/CodeGen/arm64-microsoft-arguments.cpp
The file was modifiedclang/test/CodeGen/2006-05-19-SingleEltReturn.c
The file was modifiedclang/test/CodeGenCXX/lambda-expressions.cpp
The file was modifiedclang/test/CodeGen/riscv32-ilp32-ilp32f-ilp32d-abi.c
The file was modifiedclang/test/CodeGen/ppc64-elf-abi.c
The file was modifiedclang/test/CodeGenCXX/stack-reuse-miscompile.cpp
The file was modifiedclang/test/CodeGen/struct-passing.c
The file was addedclang/test/CodeGen/aligned-sret.c
The file was modifiedclang/test/CodeGen/arm64_32.c
The file was modifiedclang/test/CodeGenCXX/stack-reuse.cpp
The file was modifiedclang/test/CodeGenObjC/stret-1.m
The file was modifiedclang/test/CodeGen/ppc64-align-struct.c
The file was modifiedclang/test/CodeGen/lanai-arguments.c
The file was modifiedclang/test/CodeGen/sparcv9-abi.c
The file was modifiedclang/test/CodeGen/x86_64-arguments.c
The file was modifiedclang/test/CodeGen/systemz-abi.cpp
The file was modifiedclang/test/CodeGen/riscv32-ilp32f-ilp32d-abi.c
The file was modifiedclang/test/CodeGen/renderscript.c
The file was modifiedclang/test/CodeGenOpenCLCXX/addrspace-of-this.cl
The file was modifiedclang/test/CodeGen/mcu-struct-return.c
The file was modifiedclang/test/CodeGen/ms_abi.c
The file was modifiedclang/test/CodeGen/riscv32-ilp32-abi.c
The file was modifiedclang/test/CodeGenCXX/trivial_abi.cpp
The file was modifiedclang/test/CodeGen/arc/arguments.c
The file was modifiedclang/test/CodeGen/x86_64-arguments-nacl.c
The file was modifiedclang/test/CodeGen/arm-varargs.c
The file was modifiedclang/test/CodeGen/arm-homogenous.c
The file was modifiedclang/test/CodeGenCXX/x86_32-arguments.cpp
The file was modifiedclang/test/CodeGen/riscv32-ilp32-ilp32f-abi.c
The file was modifiedclang/test/CodeGen/x86_32-arguments-darwin.c
The file was modifiedclang/test/CodeGenCXX/thunks.cpp
The file was modifiedclang/test/CodeGen/x86_32-arguments-iamcu.c
The file was modifiedclang/test/CodeGenCXX/cxx1z-copy-omission.cpp
The file was modifiedclang/test/CodeGen/arm-vector-arguments.c
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-vmemptr-conflicts.cpp
The file was modifiedclang/test/CodeGen/systemz-inline-asm.c
The file was modifiedclang/test/CodeGen/arm-vfp16-arguments.c
The file was modifiedclang/test/CodeGenOpenCL/amdgpu-abi-struct-coerce.cl
The file was modifiedclang/test/CodeGenObjC/objc-non-trivial-struct-nrvo.m
The file was modifiedclang/test/CodeGen/vectorcall.c
The file was modifiedclang/test/CodeGen/mips-zero-sized-struct.c
The file was modifiedclang/test/CodeGenObjC/arc.m
The file was modifiedclang/test/CodeGen/ppc64-soft-float.c
The file was modifiedclang/test/CodeGenCXX/unknown-anytype.cpp
The file was modifiedclang/test/CodeGen/aggregate-assign-call.c
The file was modifiedclang/test/CodeGenCXX/arm-cc.cpp
The file was modifiedclang/test/CodeGen/le32-arguments.c
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-cdecl-method-sret.cpp
The file was modifiedclang/test/CodeGen/windows-struct-abi.c
The file was modifiedclang/test/CodeGenCXX/x86_64-arguments.cpp
The file was modifiedclang/test/CodeGen/c11atomics-ios.c
The file was modifiedclang/test/CodeGen/riscv64-lp64-abi.c
The file was modifiedclang/test/CodeGen/ppc64le-f128Aggregates.c
The file was modifiedclang/test/CodeGenCXX/cxx1z-lambda-star-this.cpp
The file was modifiedclang/test/CodeGenCXX/temporaries.cpp
The file was modifiedclang/test/CodeGen/riscv64-lp64-lp64f-abi.c
The file was modifiedclang/test/CodeGen/mingw-long-double.c
The file was modifiedclang/test/CodeGen/wasm-varargs.c
The file was modifiedclang/test/CodeGen/mips64-padding-arg.c
The file was modifiedclang/test/CodeGen/arm-vfp16-arguments2.cpp
The file was modifiedclang/test/CodeGen/arm-aapcs-vfp.c
The file was modifiedclang/test/CodeGenCXX/builtin-source-location.cpp
The file was modifiedclang/test/CodeGen/c11atomics.c
The file was modifiedclang/test/CodeGen/systemz-abi.c
The file was modifiedclang/test/CodeGen/aarch64-varargs.c
The file was modifiedclang/test/CodeGenObjC/nontrivial-c-struct-exception.m
The file was modifiedclang/test/CodeGenCXX/thunk-returning-memptr.cpp
The file was modifiedclang/test/CodeGen/riscv64-lp64d-abi.c
The file was modifiedclang/test/CodeGenCXX/exceptions.cpp
The file was modifiedclang/test/CodeGen/riscv32-ilp32d-abi.c
The file was modifiedclang/test/CodeGen/wasm-arguments.c
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-byval-thunks.cpp
The file was modifiedclang/test/CodeGenObjC/weak-in-c-struct.m
The file was modifiedclang/test/CodeGen/arm_neon_intrinsics.c
The file was modifiedclang/test/CodeGen/ppc64-qpx-vector.c
The file was modifiedclang/test/CodeGenOpenCL/addr-space-struct-arg.cl
The file was modifiedclang/test/CodeGenCoroutines/coro-await.cpp
The file was modifiedclang/test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
The file was modifiedclang/test/CodeGen/arm-neon-vld.c
The file was modifiedclang/test/CodeGenCoroutines/coro-gro-nrvo.cpp
The file was modifiedclang/test/CodeGenCXX/homogeneous-aggregates.cpp
The file was modifiedclang/test/CodeGen/regparm-struct.c
The file was modifiedclang/test/CodeGenCXX/regcall.cpp
The file was modifiedclang/test/CodeGen/arm64-arguments.c
Commit e8d67ada2df35ca6c70dbbe8185b0edbb18c1150 by craig.topper
[X86] Disable autoupgrade support for avx512.mask.broadcasti32x2.* and avx512.mask.broadcastf32x2.*.

These intrinsics take a v4i32/v4f32 input and are supposed to
broadcast elements 0 and 1. Instead the autoupgrade code was
broadcasting elements 0, 1, 2, and 3.

I could fix the autoupgrade, but since its been broken for years
it seemed better just to steer anyone still trying to use it away
completely.
The file was modifiedllvm/test/CodeGen/X86/avx512dqvl-intrinsics-upgrade.ll
The file was modifiedllvm/lib/IR/AutoUpgrade.cpp
The file was modifiedllvm/test/CodeGen/X86/avx512dq-intrinsics-upgrade.ll
Commit 03e29e2c19a8e1f6a225b1878df3eed4e54891e5 by Vedant Kumar
[lldb/DWARF] Reland: Use DW_AT_call_pc to determine artificial frame address

Reland with changes: the test modified in this change originally failed
on a Debian/x86_64 builder, and I suspect the cause was that lldb looked
up the line location for an artificial frame by subtracting 1 from the
frame's address. For artificial frames, the subtraction must not happen
because the address is already exact.

---

lldb currently guesses the address to use when creating an artificial
frame (i.e., a frame constructed by determining the sequence of (tail)
calls which must have happened).

Guessing the address creates problems -- use the actual address provided
by the DW_AT_call_pc attribute instead.

Depends on D76336.

rdar://60307600

Differential Revision: https://reviews.llvm.org/D76337
The file was modifiedlldb/test/API/functionalities/tail_call_frames/unambiguous_sequence/main.cpp
The file was modifiedlldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
The file was modifiedlldb/source/Symbol/Function.cpp
The file was modifiedlldb/include/lldb/Symbol/Function.h
The file was modifiedlldb/source/Target/StackFrameList.cpp
Commit 57ce79f74d27915249a669d40cf04ed27aedf602 by jpienaar
[mlir] Clarify constraint on derived attribute

Summary:
The restriction that a derived attribute should represent an
attribute/be materializable as an attribute was not made clear.

Differential Revision: https://reviews.llvm.org/D76715
The file was modifiedmlir/include/mlir/IR/OpBase.td
The file was modifiedmlir/docs/OpDefinitions.md
Commit 3e11d84d9f77736af22f52753593c8214d76875a by ditaliano
[Darwin] Add another hint to find the kernel. NFC.
The file was modifiedlldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
Commit 7339fca25facb566e969b6ce01f23ac96499d574 by aaron
Revert "Convert a reachable llvm_unreachable into an assert."

This reverts commit 4a0267e3ad8c4d47f267d7d960f127e099fb4818.
The file was modifiedclang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
Commit 5699d08b79afdaed167fb202a4e22d73d6f1bf48 by johannes
[Attributor] Use knowledge retained in llvm.assume (operand bundles)

This patch integrates operand bundle llvm.assumes [0] with the
Attributor. Most IRAttributes will now look at uses of the associated
value and if there are llvm.assume operand bundle uses with the right
tag we will check if they are in the must-be-executed-context (around
the context instruction). Droppable users, which is currently only
llvm::assume, are handled special in some places now as well.

[0] http://lists.llvm.org/pipermail/llvm-dev/2019-December/137632.html

Reviewed By: uenoku

Differential Revision: https://reviews.llvm.org/D74888
The file was modifiedllvm/lib/Transforms/IPO/Attributor.cpp
The file was modifiedllvm/include/llvm/Transforms/IPO/Attributor.h
The file was modifiedllvm/test/Transforms/Attributor/nonnull.ll
The file was modifiedllvm/lib/IR/KnowledgeRetention.cpp
The file was modifiedllvm/unittests/IR/KnowledgeRetentionTest.cpp
The file was modifiedllvm/include/llvm/IR/KnowledgeRetention.h
The file was modifiedllvm/test/Transforms/Attributor/nofree.ll
The file was modifiedllvm/test/Transforms/Attributor/dereferenceable-1.ll
Commit 472d282046d044b409fd2c550e101e85583c54a0 by Amara Emerson
[AArch64][GlobalISel] Don't localize TLS G_GLOBAL_VALUEs on Darwin.

On Darwin these need to be selected into a function call for the TLS
address lookup. As a result, they can't be moved below a physreg write,
which happens in call sequences. In the long term, we should have some
mechanism in the localizer to prevent localizing into target-specific
atomic instruction sequences.

rdar://60056248

Differential Revision: https://reviews.llvm.org/D76652
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/localizer-arm64-tti.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.h
Commit 4f4e68799fd55c7023e685161de6f6bb1ada16d5 by michael.hliao
[test][clang][driver] Add required features.

- to avoid false alarms on builds without that features.
The file was modifiedclang/test/Driver/save-temps.c
Commit 3f1defa6e2dfdea2a5980083de2b04068f640023 by efriedma
[clang codegen] Clean up handling of vectors with trivial-auto-var-init.

The code was pretending to be doing something useful with vectors, but
really it was doing nothing: the element type of a vector is always a
scalar type, so constWithPadding would always just return the input constant.

Split off from D75661 so it can be reviewed separately.

While I'm here, also add testcase to show missing vector handling.

Differential Revision: https://reviews.llvm.org/D76528
The file was modifiedclang/test/CodeGenCXX/auto-var-init.cpp
The file was modifiedclang/lib/CodeGen/CGDecl.cpp
Commit a4e8d89704d2584d5c56cb27745beab25c7b9b36 by 31459023+hctim
[GWP-ASan] Only pack frames that are stored.

Summary:
Backtrace() returns the number of frames that are *available*, rather
than the number of frames stored. When we pack, we supply the number of
frames we have stored. The number of available frames can exceed the
number of stored frames, leading to stack OOB read.

Fix up this problem.

Reviewers: eugenis

Reviewed By: eugenis

Subscribers: #sanitizers, morehouse, cferris, pcc

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D76722
The file was modifiedcompiler-rt/lib/gwp_asan/common.cpp
The file was modifiedcompiler-rt/lib/gwp_asan/tests/backtrace.cpp
Commit 1ac403bd145dadfa1004af29bd6c77f871caf42c by Louis Dionne
[libc++] Build the dylib with C++17 to allow aligned new/delete

This allows simplifying the implementation of barriers.

Differential Revision: https://reviews.llvm.org/D75243
The file was modifiedlibcxx/CMakeLists.txt
The file was modifiedlibcxx/src/barrier.cpp