[llvm] [RISCV][InsertVSETVLI] Remove redundant vsetvli by repeating the coalesce phase (PR #141298)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 10:17:03 PDT 2025
================
@@ -1840,8 +1852,14 @@ bool RISCVInsertVSETVLI::runOnMachineFunction(MachineFunction &MF) {
// any cross block analysis within the dataflow. We can't have both
// demanded fields based mutation and non-local analysis in the
// dataflow at the same time without introducing inconsistencies.
- for (MachineBasicBlock &MBB : MF)
----------------
mshockwave wrote:
Good point, it indeed solves the problem. The patch is updated now.
https://github.com/llvm/llvm-project/pull/141298
More information about the llvm-commits
mailing list