[all-commits] [llvm/llvm-project] c57053: [SROA] Skip uses of allocas where the type is scal...

Allen via All-commits all-commits at lists.llvm.org
Thu Aug 24 03:44:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c570531c3dcc78e889b28493096d6f557ead7b86
      https://github.com/llvm/llvm-project/commit/c570531c3dcc78e889b28493096d6f557ead7b86
  Author: Zhongyunde <zhongyunde at huawei.com>
  Date:   2023-08-24 (Thu, 24 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/test/Transforms/SROA/scalable-vectors.ll

  Log Message:
  -----------
  [SROA] Skip uses of allocas where the type is scalable

When visiting load and store instructions in SROA skip scalable vectors.
This is relevant in the implementation of the 'arm_sve_vector_bits'
attribute that is used to define VLS types, similar to D85725.

Fix https://gcc.godbolt.org/z/o561P9zj4

Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D158631




More information about the All-commits mailing list