[all-commits] [llvm/llvm-project] 06d3ee: [RISCV] Fix wrong operand being used for VL in shi...

Luke Lau via All-commits all-commits at lists.llvm.org
Wed Aug 23 09:44:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06d3ee9603b60c642e2e70c4abc8b2f6d2322855
      https://github.com/llvm/llvm-project/commit/06d3ee9603b60c642e2e70c4abc8b2f6d2322855
  Author: Luke Lau <luke at igalia.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp

  Log Message:
  -----------
  [RISCV] Fix wrong operand being used for VL in shift combine

At some point a merge operand was added to the binary vl ops, so this combine
was using the mask for the VL. This causes a crash when trying to
select the vmv_v_x_vl, which showed up locally when messing about with
selectVSplat, but thankfully in ToT the vmv_v_x_vl gets pattern matched
away into the .vx and .vi operands every time, so there's no noticeable
change.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D158634




More information about the All-commits mailing list