SuccessChanges

Summary

  1. [clang-tidy] false-positive for bugprone-redundant-branch-condition in case of passed-by-ref params (details)
  2. [RISCV] Add a pass to remove duplicate VSETVLI instructions in a basic block. (details)
Commit 709112bce4424a5436f0bb699c62b3fbc837fbb6 by Zinovy Nis
[clang-tidy] false-positive for bugprone-redundant-branch-condition in case of passed-by-ref params

Inspired by discussion in https://reviews.llvm.org/D91037

Differential Revision: https://reviews.llvm.org/D91495
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/bugprone-redundant-branch-condition.cpp
The file was modifiedclang-tools-extra/clang-tidy/bugprone/RedundantBranchConditionCheck.cpp
Commit b577d2df7bd650668a3538429ecb3d08e037fe55 by craig.topper
[RISCV] Add a pass to remove duplicate VSETVLI instructions in a basic block.

Add simple pass for removing redundant vsetvli instructions within a basic block. This handles the case where the AVL register and VTYPE immediate are the same and no other instructions that change VTYPE or VL are between them.

There are going to be more opportunities for improvement in this space as we development more complex tests.

Differential Revision: https://reviews.llvm.org/D92679
The file was modifiedllvm/lib/Target/RISCV/RISCVTargetMachine.cpp
The file was modifiedllvm/test/CodeGen/RISCV/rvv/load-add-store-32.ll
The file was modifiedllvm/lib/Target/RISCV/RISCV.h
The file was modifiedllvm/test/CodeGen/RISCV/rvv/add-vsetvli-gpr.mir
The file was addedllvm/test/CodeGen/RISCV/rvv/cleanup-vsetvli.mir
The file was modifiedllvm/test/CodeGen/RISCV/rvv/load-add-store-16.ll
The file was addedllvm/lib/Target/RISCV/RISCVCleanupVSETVLI.cpp
The file was modifiedllvm/test/CodeGen/RISCV/rvv/load-add-store-64.ll
The file was modifiedllvm/test/CodeGen/RISCV/rvv/load-add-store-8.ll
The file was modifiedllvm/lib/Target/RISCV/CMakeLists.txt