[all-commits] [llvm/llvm-project] 52e015: [AArch64] Avoid SCALAR_TO_VECTOR for single FP con...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Mar 31 02:18:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52e015081a7768e1ba00a811a8e1a456f8aeecb4
      https://github.com/llvm/llvm-project/commit/52e015081a7768e1ba00a811a8e1a456f8aeecb4
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-03-31 (Wed, 31 Mar 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/arm64-build-vector.ll

  Log Message:
  -----------
  [AArch64] Avoid SCALAR_TO_VECTOR for single FP constant vector.

Currently the code only checks for integer constants (ConstantSDNode)
and triggers an infinite cycle for single-element floating point
vector constants. We need to check for both FP and integer constants.

Reviewed By: t.p.northover

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




More information about the All-commits mailing list