[all-commits] [llvm/llvm-project] 4dd5d9: [RISCV] Don't call use_nodbg_operands for physical...
Craig Topper via All-commits
all-commits at lists.llvm.org
Fri Jan 5 09:23:07 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4dd5d967975fa8d52b8c60596d892d9dd5615809
https://github.com/llvm/llvm-project/commit/4dd5d967975fa8d52b8c60596d892d9dd5615809
Author: Craig Topper <craig.topper at sifive.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M llvm/lib/Target/RISCV/RISCVOptWInstrs.cpp
M llvm/test/CodeGen/RISCV/opt-w-instrs.mir
Log Message:
-----------
[RISCV] Don't call use_nodbg_operands for physical registers in RISCVOptWInstrs hasAllNBitUsers. (#77032)
The ADDIW in the new test case was incorrectly removed due to
incorrectly following the x10 register from the return value back to the
argument. This is due to use_nodbg_operands returning every instruction
that uses a physical register regardless of the data flow.
More information about the All-commits
mailing list