[all-commits] [llvm/llvm-project] ef0d68: [SelectionDAGBuilder] use bitcast instead of AnyEx...

Henry Yu via All-commits all-commits at lists.llvm.org
Thu Nov 3 15:38:16 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef0d689e8be2ac22b2e2da477217c761354c0ff9
      https://github.com/llvm/llvm-project/commit/ef0d689e8be2ac22b2e2da477217c761354c0ff9
  Author: Henry Yu <hazyfish at outlook.com>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    A llvm/test/CodeGen/AArch64/aarch64-v1f32-arg.ll

  Log Message:
  -----------
  [SelectionDAGBuilder] use bitcast instead of AnyExtOrTrunc if copy parts from an int vector to a float vector to fix issue #58615

The getCopyFromPartsVector doesn't work correctly when PartEVT and ValueVT have both different element type and different size.

This patch
1) removes the part of a comment that contains the incorrect assumption that element type are the same
2) use bitcast when copy parts of int vector to a float vector after the subvector extraction

Reviewed By: Peter, efriedma

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




More information about the All-commits mailing list