[all-commits] [llvm/llvm-project] ad66b5: [RISCV][Peephole] Clear kill flags for registers a...
Piyou Chen via All-commits
all-commits at lists.llvm.org
Thu May 8 22:45:37 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ad66b5a62d0e811f4a90df6becaa0ac36757b682
https://github.com/llvm/llvm-project/commit/ad66b5a62d0e811f4a90df6becaa0ac36757b682
Author: Piyou Chen <piyou.chen at sifive.com>
Date: 2025-05-09 (Fri, 09 May 2025)
Changed paths:
M llvm/lib/Target/RISCV/RISCVVectorPeephole.cpp
M llvm/test/CodeGen/RISCV/rvv/vmv.v.v-peephole.mir
Log Message:
-----------
[RISCV][Peephole] Clear kill flags for registers after foldUndefPassthruVMV_V_V (#138847)
Without clearing kill flags, this pass will generate bad machine code.
```
*** Bad machine code: Using a killed virtual register ***
- function: main
- basic block: %bb.0 entry (0x437ef928)
- instruction: %12:vrn7m1 = INSERT_SUBREG %11:vrn7m1(tied-def 0), %0:vr, %subreg.sub_vrm1_0
- operand 2: %0:vr
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list