[all-commits] [llvm/llvm-project] 043f06: [RISCV][VLOPT] Fix operand check in isVectorOpUsed...

Luke Lau via All-commits all-commits at lists.llvm.org
Tue Oct 15 07:10:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 043f066a647334195da41d7f5fd2a8400d7e4c91
      https://github.com/llvm/llvm-project/commit/043f066a647334195da41d7f5fd2a8400d7e4c91
  Author: Luke Lau <luke at igalia.com>
  Date:   2024-10-15 (Tue, 15 Oct 2024)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVVLOptimizer.cpp
    M llvm/test/CodeGen/RISCV/rvv/vl-opt.mir

  Log Message:
  -----------
  [RISCV][VLOPT] Fix operand check in isVectorOpUsedAsScalarOp (#112253)

A reduction instruction always has a passthru operand, so the scalar
operand should always be vs1 which is at index 3.

Even though the destination operand is also scalar, I think the passthru
will need to preserve all elements so I haven't included it.



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