SuccessChanges

Summary

  1. [clang-tidy] Fix a crash on invalid code for memset-usage check. (details)
  2. [NFCI] SimplifyCFGPass: mergeEmptyReturnBlocks(): use DeleteDeadBlocks() (details)
  3. [RISCV] Support INSERT_VECTOR_ELT into i1 vectors (details)
  4. [llvm-objcopy] Add support for '--' for delimiting options from input/output files (details)
  5. [NFCI][SimplifyCFG] simplifyCommonResume(): use DeleteDeadBlock() (details)
  6. [NFCI][SimplifyCFG] simplifySingleResume(): use DeleteDeadBlock() (details)
  7. [NFCI][SimplifyCFG] simplifyReturn(): use DeleteDeadBlock() (details)
  8. [NFCI][SimplifyCFG] simplifyUnreachable(): use DeleteDeadBlock() (details)
Commit 9f36306cc9ac6d1d1019831d40865d0d54563379 by hokein.wu
[clang-tidy] Fix a crash on invalid code for memset-usage check.

Differential Revision: https://reviews.llvm.org/D102714
The file was modifiedclang-tools-extra/clang-tidy/bugprone/SuspiciousMemsetUsageCheck.cpp
The file was addedclang-tools-extra/test/clang-tidy/checkers/bugprone-suspicious-memset-usage.c
Commit 729e18cbf498fb9b95fd672691ee8c7b7926f674 by lebedev.ri
[NFCI] SimplifyCFGPass: mergeEmptyReturnBlocks(): use DeleteDeadBlocks()

In this case, it does the same thing as the original pattern does.

SimplifyCFG has a few lurking miscompilations about deleting blocks that
have their address taken, and consistently using DeleteDeadBlocks() instead
of a hand-rolled pattern will allow to weed those cases out easierly.
The file was modifiedllvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
Commit ca2c245ba4665bde94f8c6319185d1c9ff295167 by fraser
[RISCV] Support INSERT_VECTOR_ELT into i1 vectors

Like the element extraction of these vectors, we choose to promote up to
an i8 vector type and perform the insertion there.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D102697
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp
The file was addedllvm/test/CodeGen/RISCV/rvv/insertelt-i1.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-insert-i1.ll
Commit f24f140290703b4ec610ac45bd5e4cbdaa8ee25e by serguei.n.dmitriev
[llvm-objcopy] Add support for '--' for delimiting options from input/output files

This will allow to use llvm-objcopy with file names that begin with dashes.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D102665
The file was modifiedllvm/test/tools/llvm-objcopy/tool-help-message.test
The file was modifiedllvm/tools/llvm-objcopy/CopyConfig.cpp
The file was addedllvm/test/tools/llvm-objcopy/dash-dash.test
Commit a4eb24c688c350d4e948d8a7303c3a5fa4e42698 by lebedev.ri
[NFCI][SimplifyCFG] simplifyCommonResume(): use DeleteDeadBlock()
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp
Commit 00f90e3fca79e8ba9bf44e7e3a0da0e6311af822 by lebedev.ri
[NFCI][SimplifyCFG] simplifySingleResume(): use DeleteDeadBlock()
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp
Commit 69a43e5fc5ead9e53f975a0ca41cc62c78f644ec by lebedev.ri
[NFCI][SimplifyCFG] simplifyReturn(): use DeleteDeadBlock()
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp
Commit 57d20cbf467fc69ebd575209d101f73ab4461e84 by lebedev.ri
[NFCI][SimplifyCFG] simplifyUnreachable(): use DeleteDeadBlock()
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp