[llvm] [RISCV][VLOPT] Handle tied pseudos in getOperandInfo (PR #123170)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 16 02:28:21 PST 2025
================
@@ -568,7 +569,8 @@ getOperandLog2EEW(const MachineOperand &MO, const MachineRegisterInfo *MRI) {
case RISCV::VFWADD_WV:
case RISCV::VFWSUB_WF:
case RISCV::VFWSUB_WV: {
- bool IsOp1 = HasPassthru ? MO.getOperandNo() == 2 : MO.getOperandNo() == 1;
+ bool IsOp1 = (HasPassthru && !IsTied) ? MO.getOperandNo() == 2
----------------
wangpc-pp wrote:
I am inclined to use another name instead of `IsOp1` because it doesn't make sense here, `IsVS1` seems to be more suitable.
Since there are more other cases, this can be a NFC follow-up. :-)
https://github.com/llvm/llvm-project/pull/123170
More information about the llvm-commits
mailing list