FailedChanges

Summary

  1. [x86] add tests for store merging; NFC (details)
  2. [MemCpyOpt] Account for case that MemInsertPoint == BI. (details)
  3. [mlir] Fix includes in mlir-translate (details)
  4. [mlir] Refactor standalone-translate to use mlirTranslateMain() (details)
  5. [DSE] Move legacy tests to DeadStoreElimination/MemDepAnalysis. (details)
  6. Revert "Canonicalize declaration pointers when forming APValues." (details)
  7. [gn build] fix llvm-lit after d23b15cc16077 (details)
  8. [spirv] Add more target and resource limit fields (details)
  9. clang: Add test for -Wunreachable-code + weak redeclaration (details)
  10. [EarlyCSE] Verify hash code in regression tests (details)
  11. [MachOYAML] Allow handcrafting custom contents for DWARF sections. (details)
  12. Revert "[Asan] Cleanup atomic usage in allocator" (details)
Commit 4d536c6da55d662b7aad8da71815d8cba7d44967 by spatel
[x86] add tests for store merging; NFC
The file was modifiedllvm/test/CodeGen/X86/stores-merging.ll
Commit 6bc5e866bdba03fdd2d92bd72f3fce9c2973bf1f by flo
[MemCpyOpt] Account for case that MemInsertPoint == BI.

In that case, the new MemoryDef needs to be inserted *before*
MemInsertPoint.
The file was modifiedllvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
The file was modifiedllvm/test/Transforms/MemCpyOpt/preserve-memssa.ll
Commit c633842f134171f31ace7e64088045f3a4975a88 by marius.brehler
[mlir] Fix includes in mlir-translate

Drops the include on InitAllDialects.h, as dialects are now initialized in the translation passes.

Differential Revision: https://reviews.llvm.org/D87129
The file was modifiedmlir/tools/mlir-translate/mlir-translate.cpp
Commit 4f7cdc10a83ce605a86f9d84bf6b11182c886ba3 by marius.brehler
[mlir] Refactor standalone-translate to use mlirTranslateMain()

This refactors the standalone-translate executable to use mlirTranslateMain() declared in Translation.h and further applies D87129.

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D87131
The file was modifiedmlir/examples/standalone/standalone-translate/standalone-translate.cpp
Commit 6cb54cfe0b40216f0cac03f1f70a5b0ba328d5bb by flo
[DSE] Move legacy tests to DeadStoreElimination/MemDepAnalysis.

This patch moves the tests for the old MemDepAnalysis based DSE
implementation to the MemDepAnalysis subdirectory and updates them to
pass -enable-dse-memoryssa=false.

This is in preparation for the switch to MemorySSA-backed DSE.
The file was removedllvm/test/Transforms/DeadStoreElimination/pr11390.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/crash.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/invariant.start.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/2011-09-06-MemCpy.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/OverwriteStoreBegin.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/launder.invariant.group.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/merge-stores.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/PartialStore2.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/no-targetdata.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/merge-stores-big-endian.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/merge-stores.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/OverwriteStoreEnd.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/lifetime.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/X86/gather-null-pointer.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/operand-bundles.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/const-pointers.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/cs-cs-aliasing.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/no-targetdata.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/combined-partial-overwrites.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/2011-09-06-MemCpy.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/2011-03-25-DSEMiscompile.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/memset-missing-debugloc.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/crash.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/X86/gather-null-pointer.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/PartialStore.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/2011-09-06-EndOfFunction.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/free.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/int_sideeffect.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/debuginfo.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/mda-with-dbg-values.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/tail-byval.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/2011-09-06-EndOfFunction.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/operand-bundles.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/atomic.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/memintrinsics.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/tail-byval.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/atomic.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/libcalls2.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/calloc-store.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/DeleteThrowableInst.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/calloc-store.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/simple.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/combined-partial-overwrites.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/2011-03-25-DSEMiscompile.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/PartialStore2.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/simple.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/cs-cs-aliasing.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/memintrinsics.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/libcalls.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/inst-limits.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/lifetime.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/PartialStore.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/libcalls.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/dominate.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/libcalls2.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/OverwriteStoreBegin.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/dominate.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/OverwriteStoreEnd.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/debuginfo.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/launder.invariant.group.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/pr11390.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/mda-with-dbg-values.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/int_sideeffect.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/2016-07-17-UseAfterFree.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/2016-07-17-UseAfterFree.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/merge-stores-big-endian.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/inst-limits.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/invariant.start.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/const-pointers.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/memset-missing-debugloc.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/fence.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/free.ll
The file was removedllvm/test/Transforms/DeadStoreElimination/DeleteThrowableInst.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/fence.ll
Commit 7b0332389afd705f46b02fcf87ec3414b8dece34 by thakis
Revert "Canonicalize declaration pointers when forming APValues."

This reverts commit e6393ee813178e9d3306b8e3c6949a4f32f8a2cb.
It breaks Wunreachable for weak attributes, see
http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20200831/336645.html
The file was modifiedclang/test/OpenMP/ordered_messages.cpp
The file was modifiedclang/lib/AST/ExprConstant.cpp
The file was modifiedclang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p9.cpp
The file was modifiedclang/lib/AST/APValue.cpp
The file was modifiedclang/include/clang/AST/APValue.h
Commit c88a77620436ee475d54d3b5ced30286101e0dc9 by thakis
[gn build] fix llvm-lit after d23b15cc16077
The file was modifiedllvm/utils/gn/secondary/llvm/utils/llvm-lit/BUILD.gn
Commit 7d53fecb679228025ea0b1a69209fdcb85b2ae47 by antiagainst
[spirv] Add more target and resource limit fields

These fields will be used to choose/influence patterns for
SPIR-V code generation.

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D87106
The file was modifiedmlir/lib/Dialect/SPIRV/TargetAndABI.cpp
The file was modifiedmlir/include/mlir/Dialect/SPIRV/SPIRVBase.td
The file was modifiedmlir/include/mlir/Dialect/SPIRV/TargetAndABI.td
The file was modifiedmlir/include/mlir/Dialect/SPIRV/TargetAndABI.h
Commit 2a03f270d69cf1079feb029f84727288e217588a by thakis
clang: Add test for -Wunreachable-code + weak redeclaration

This tests what caused the revert in 7b033238.
The file was modifiedclang/test/SemaCXX/unreachable-code.cpp
Commit 3404add4684d5959d1ed997149d9896d136d4d3c by bryan.chan
[EarlyCSE] Verify hash code in regression tests

As discussed in D86843, -earlycse-debug-hash should be used in more regression
tests to catch inconsistency between the hashing and the equivalence check.

Differential Revision: https://reviews.llvm.org/D86863
The file was modifiedllvm/test/CodeGen/PowerPC/no-dup-of-bdnz.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/flags.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/readnone-mayunwind.ll
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/rint.ll
The file was modifiedllvm/test/DebugInfo/salvage-cast-debug-info.ll
The file was modifiedllvm/test/CodeGen/X86/mmx-bitcast-fold.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/basic.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/floatingpoint.ll
The file was modifiedllvm/test/Other/debugcounter-earlycse.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/invariant.start.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/and_or.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/AMDGPU/intrinsics.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/atomics.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/AArch64/ldstN.ll
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/vscale-getelementptr.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/AMDGPU/memrealtime.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/writeonly.ll
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/trunc.ll
The file was modifiedllvm/test/Other/opt-bisect-legacy-pass-manager.ll
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/math-1.ll
The file was modifiedllvm/test/Transforms/Inline/inline-indirect-chain.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/instsimplify-dom.ll
The file was modifiedllvm/test/Feature/OperandBundles/early-cse.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/fence.ll
The file was modifiedllvm/test/Other/print-debug-counter.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/PowerPC/read-reg.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/int_sideeffect.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/phi.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/invariant-loads.ll
The file was modifiedllvm/test/Transforms/GVNHoist/pr37445.ll
The file was modifiedllvm/test/Transforms/InstCombine/invariant.group.ll
The file was modifiedllvm/test/Other/invariant.group.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/memoryssa.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/AArch64/intrinsics.ll
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/round.ll
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/vscale-shufflevector.ll
The file was modifiedllvm/test/Transforms/Reassociate/cse-pairs.ll
The file was modifiedllvm/test/Transforms/GVNHoist/pr38807.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/gc_relocate.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/pr33406.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/X86/preserve_memoryssa.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/conditional.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/globalsaa-memoryssa.ll
The file was modifiedllvm/test/Feature/OperandBundles/special-state.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/debug-info-undef.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/guards.ll
The file was modifiedllvm/test/DebugInfo/Generic/pr40628.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/debuginfo-dce.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/const-speculation.ll
The file was modifiedllvm/test/Analysis/MemorySSA/pr41853.ll
The file was modifiedllvm/test/Transforms/EarlyCSE/edge.ll
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/allones.ll
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/math-2.ll
The file was modifiedllvm/test/Transforms/NaryReassociate/NVPTX/nary-gep.ll
Commit 2966d6e80b77c97f65805920d4d3288885de53c9 by Xing
[MachOYAML] Allow handcrafting custom contents for DWARF sections.

This patch enables users to handcraft custom contents for DWARF
sections. If we specify the contents of DWARF sections both in the
'DWARF' entry and the 'content', yaml2obj will emit an error message.
In addition, this patch helps remove the restriction that only the
content of sections whose segname are __DWARF can be specified in the
"DWARF" entry.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D87126
The file was modifiedllvm/lib/ObjectYAML/MachOEmitter.cpp
The file was addedllvm/test/ObjectYAML/MachO/dwarf-content-conflict.yaml
The file was modifiedllvm/test/ObjectYAML/MachO/DWARF-debug_ranges.yaml
The file was modifiedllvm/test/tools/llvm-dwarfdump/X86/verify_overlapping_cu_ranges.yaml
The file was modifiedllvm/test/tools/llvm-gsymutil/ARM_AArch64/fat-macho-dwarf.yaml
The file was modifiedllvm/test/tools/llvm-gsymutil/X86/mach-dwarf.yaml
The file was modifiedllvm/test/tools/obj2yaml/MachO/unrecognized-debug-section.yaml
Commit dbf04aaade235a0d76c6ad549c091c9fd0ada0e8 by thakis
Revert "[Asan] Cleanup atomic usage in allocator"

This reverts commit 8b8be6f38ab568d40869205389a002f32f6558a2
and follow-ups 99a93c3a223e3bfc9a9781bfbf98d2fd4551f923,
a9c0bf04043462d43013bc5616aa48f6d3e16b88,
48ac5b4833b60f00f0923db11ea31e7316bc78c6.

It breaks building on Windows, see https://reviews.llvm.org/D86917#2255872
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp