[all-commits] [llvm/llvm-project] 12357e: [RISCV][SelectionDAGBuilder] Fix crash when copyin...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Sep 28 10:14:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12357e88af669b00a5c4c607b93b716a6c474846
      https://github.com/llvm/llvm-project/commit/12357e88af669b00a5c4c607b93b716a6c474846
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-09-28 (Wed, 28 Sep 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    A llvm/test/CodeGen/RISCV/pr58025.ll

  Log Message:
  -----------
  [RISCV][SelectionDAGBuilder] Fix crash when copying a v1f32 vector between basic blocks.

On a rv64 without f32 or vector support, this will be passed across
the basic block as an i64. We need use i32 as an intermediate type
with bitcast and anyext/trunc.

Fixes PR58025

Reviewed By: RKSimon

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




More information about the All-commits mailing list