Changes

Summary

  1. [msan] reflect the changed flag to the tests. (details)
  2. [LV] Restore metadata to disable runtime unrolling for epilogue loop. (details)
  3. [LLD] Remove global state in lldCommon (details)
  4. [gn build] Port f860fe362282 (details)
  5. Resolve lit failures in clang-aarch64* (details)
  6. [LLD] Supplement with more comments. Clarify the intention in f860fe362282ed69b9d4503a20e5d20b9a041189. (details)
  7. Revert [LLD] Remove global state in lldCommon (details)
  8. [gn build] Port e6b153947dfa (details)
  9. [MLIR] Simplex::getRationalSample: return an optional, empty if Simplex is empty (details)
  10. [clang][dataflow] Add transfer functions for bind temporary and static cast (details)
  11. [DAGCombine] Refactor DAGCombiner::ReduceLoadWidth. NFCI (details)
  12. [AttrBuilder] Remove unused hasAttributes() overload (details)
Commit be9eafc71004393363d155dd16ea1af9c663aafe by gusrb406
[msan] reflect the changed flag to the tests.

1b1c8d changed `enable-noundef-analysis` flag to
`disable-noundef-analysis`.  noundef_analysis.cpp was using old
`enable-noundef-analysis` flag and this patch fixes it.
The file was modifiedcompiler-rt/test/msan/noundef_analysis.cpp
Commit 070d1034da87c94d86d1a61245ecf068141fdf14 by flo
[LV] Restore metadata to disable runtime unrolling for epilogue loop.

After d4a8fc3a87a1 LV stopped adding metadata to disable runtime
unrolling to the vectorized epilogue loop. This was missed because
278aa65cc495 removed the relevant test coverage.

This patch fixes that by adding the relevant metadata after
vector loop generation.
The file was modifiedllvm/test/Transforms/LoopVectorize/X86/masked_load_store.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/PowerPC/optimal-epilog-vectorization.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/X86/invariant-store-vectorization.ll
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Commit f860fe362282ed69b9d4503a20e5d20b9a041189 by alexandre.ganea
[LLD] Remove global state in lldCommon

Move all variables at file-scope or function-static-scope into a hosting structure (lld::CommonLinkerContext) that lives at lldMain()-scope. Drivers will inherit from this structure and add their own global state, in the same way as for the existing COFFLinkerContext.

See discussion in https://lists.llvm.org/pipermail/llvm-dev/2021-June/151184.html

Differential Revision: https://reviews.llvm.org/D108850
The file was modifiedlld/COFF/SymbolTable.cpp
The file was modifiedlld/Common/Memory.cpp
The file was modifiedlld/wasm/InputFiles.cpp
The file was modifiedlld/ELF/Driver.cpp
The file was modifiedlld/include/lld/Core/LinkingContext.h
The file was modifiedlld/COFF/Chunks.cpp
The file was modifiedlld/ELF/InputSection.cpp
The file was modifiedlld/include/lld/Common/Driver.h
The file was modifiedlld/wasm/SymbolTable.cpp
The file was modifiedlld/wasm/Driver.cpp
The file was modifiedlld/wasm/Writer.cpp
The file was modifiedlld/Common/TargetOptionsCommandFlags.cpp
The file was modifiedlld/Common/CMakeLists.txt
The file was modifiedlld/ELF/Arch/PPC64.cpp
The file was modifiedlld/MachO/SyntheticSections.cpp
The file was modifiedlld/ELF/InputFiles.cpp
The file was modifiedlld/COFF/Writer.cpp
The file was modifiedlld/ELF/ScriptParser.cpp
The file was modifiedlld/ELF/Writer.cpp
The file was modifiedlld/ELF/AArch64ErrataFix.cpp
The file was modifiedlld/MachO/InputFiles.cpp
The file was modifiedlld/ELF/LinkerScript.cpp
The file was modifiedlld/ELF/SyntheticSections.cpp
The file was modifiedlld/MinGW/Driver.cpp
The file was modifiedlld/COFF/PDB.cpp
The file was modifiedlld/ELF/DriverUtils.cpp
The file was modifiedlld/MachO/DriverUtils.cpp
The file was modifiedlld/ELF/ARMErrataFix.cpp
The file was modifiedlld/MachO/ConcatOutputSection.cpp
The file was modifiedlld/COFF/MinGW.cpp
The file was modifiedlld/COFF/DriverUtils.cpp
The file was modifiedlld/COFF/LTO.cpp
The file was modifiedlld/MachO/LTO.cpp
The file was addedlld/Common/CommonLinkerContext.cpp
The file was modifiedlld/MachO/Driver.cpp
The file was modifiedlld/COFF/InputFiles.cpp
The file was modifiedlld/tools/lld/lld.cpp
The file was modifiedlld/ELF/Thunks.cpp
The file was modifiedlld/COFF/COFFLinkerContext.h
The file was addedlld/include/lld/Common/CommonLinkerContext.h
The file was modifiedlld/include/lld/Common/ErrorHandler.h
The file was modifiedlld/include/lld/Common/Memory.h
The file was modifiedlld/Common/ErrorHandler.cpp
The file was modifiedlld/COFF/Driver.cpp
The file was modifiedlld/COFF/DLL.cpp
The file was modifiedlld/MachO/Writer.cpp
The file was modifiedlld/ELF/MarkLive.cpp
Commit 9a0e6b2abd51f8465614b1a25b1a4b4bd26c1d5c by llvmgnsyncbot
[gn build] Port f860fe362282
The file was modifiedllvm/utils/gn/secondary/lld/Common/BUILD.gn
Commit 4608b1d726daa808abf08f0f0860636a7b20771f by gusrb406
Resolve lit failures in clang-aarch64*
The file was modifiedclang/test/Profile/cxx-lambda.cpp
Commit 30a4020a7db866990199f523a60ad474d7ec3efa by alexandre.ganea
[LLD] Supplement with more comments. Clarify the intention in f860fe362282ed69b9d4503a20e5d20b9a041189.
The file was modifiedlld/include/lld/Common/CommonLinkerContext.h
The file was modifiedlld/Common/CommonLinkerContext.cpp
Commit e6b153947dfae5d666c4bac56b10ee82ddb173c4 by alexandre.ganea
Revert [LLD] Remove global state in lldCommon

It seems to be causing issues on https://lab.llvm.org/buildbot/#/builders/123/builds/8383
The file was modifiedlld/COFF/LTO.cpp
The file was modifiedlld/Common/TargetOptionsCommandFlags.cpp
The file was modifiedlld/MinGW/Driver.cpp
The file was modifiedlld/ELF/Arch/PPC64.cpp
The file was modifiedlld/ELF/Thunks.cpp
The file was modifiedlld/COFF/COFFLinkerContext.h
The file was modifiedlld/ELF/ARMErrataFix.cpp
The file was modifiedlld/MachO/SyntheticSections.cpp
The file was modifiedlld/ELF/Writer.cpp
The file was modifiedlld/ELF/ScriptParser.cpp
The file was modifiedlld/MachO/Writer.cpp
The file was modifiedlld/COFF/SymbolTable.cpp
The file was modifiedlld/ELF/SyntheticSections.cpp
The file was modifiedlld/ELF/LinkerScript.cpp
The file was modifiedlld/MachO/InputFiles.cpp
The file was modifiedlld/COFF/PDB.cpp
The file was removedlld/include/lld/Common/CommonLinkerContext.h
The file was removedlld/Common/CommonLinkerContext.cpp
The file was modifiedlld/ELF/InputFiles.cpp
The file was modifiedlld/wasm/Driver.cpp
The file was modifiedlld/ELF/MarkLive.cpp
The file was modifiedlld/include/lld/Common/Driver.h
The file was modifiedlld/COFF/DriverUtils.cpp
The file was modifiedlld/ELF/InputSection.cpp
The file was modifiedlld/Common/CMakeLists.txt
The file was modifiedlld/include/lld/Common/Memory.h
The file was modifiedlld/COFF/Driver.cpp
The file was modifiedlld/COFF/Writer.cpp
The file was modifiedlld/COFF/Chunks.cpp
The file was modifiedlld/wasm/InputFiles.cpp
The file was modifiedlld/COFF/InputFiles.cpp
The file was modifiedlld/Common/Memory.cpp
The file was modifiedlld/ELF/DriverUtils.cpp
The file was modifiedlld/include/lld/Core/LinkingContext.h
The file was modifiedlld/COFF/DLL.cpp
The file was modifiedlld/MachO/Driver.cpp
The file was modifiedlld/ELF/Driver.cpp
The file was modifiedlld/Common/ErrorHandler.cpp
The file was modifiedlld/COFF/MinGW.cpp
The file was modifiedlld/MachO/DriverUtils.cpp
The file was modifiedlld/ELF/AArch64ErrataFix.cpp
The file was modifiedlld/MachO/LTO.cpp
The file was modifiedlld/wasm/SymbolTable.cpp
The file was modifiedlld/MachO/ConcatOutputSection.cpp
The file was modifiedlld/tools/lld/lld.cpp
The file was modifiedlld/wasm/Writer.cpp
The file was modifiedlld/include/lld/Common/ErrorHandler.h
Commit b50c10fe59c58f1a6e76560001b86991df702536 by llvmgnsyncbot
[gn build] Port e6b153947dfa
The file was modifiedllvm/utils/gn/secondary/lld/Common/BUILD.gn
Commit 79be1fe0d5a22759fc3d241fe900f099b61e722f by arjunpitchanathan
[MLIR] Simplex::getRationalSample: return an optional, empty if Simplex is empty
The file was modifiedmlir/lib/Analysis/Presburger/IntegerPolyhedron.cpp
The file was modifiedmlir/lib/Analysis/Presburger/Simplex.cpp
The file was modifiedmlir/include/mlir/Analysis/Presburger/Simplex.h
Commit 37e6496c800b33cbf6f7967d90eab53327147478 by sgatev
[clang][dataflow] Add transfer functions for bind temporary and static cast

This is part of the implementation of the dataflow analysis framework.
See "[RFC] A dataflow analysis framework for Clang AST" on cfe-dev.

Differential Revision: https://reviews.llvm.org/D117339
The file was modifiedclang/unittests/Analysis/FlowSensitive/TransferTest.cpp
The file was modifiedclang/lib/Analysis/FlowSensitive/Transfer.cpp
Commit 9f237c9e7d88033bd777494dcc06fa5b74ee4fec by bjorn.a.pettersson
[DAGCombine] Refactor DAGCombiner::ReduceLoadWidth. NFCI

Update code comments in DAGCombiner::ReduceLoadWidth and refactor
the handling of SRL a bit. The refactoring is done with the intent
of adding support for folding away SRA by using SEXTLOAD in a
follow-up patch.

The function is also renamed as DAGCombiner::reduceLoadWidth.

Differential Revision: https://reviews.llvm.org/D117104
The file was modifiedllvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Commit 7cbbef5bbc35edb1324408deb418516fb9fadcf4 by nikita.ppv
[AttrBuilder] Remove unused hasAttributes() overload

This is unused, and doesn't make a lot of sense as an API. The
usual pattern would be to combine the AttrBuilder(AttributeSet)
constructor with the overlaps() method.
The file was modifiedllvm/include/llvm/IR/Attributes.h
The file was modifiedllvm/lib/IR/Attributes.cpp