[all-commits] [llvm/llvm-project] 49d731: [LV] Avoid scalable vectorization for loops contai...

kmclaughlin-arm via All-commits all-commits at lists.llvm.org
Fri Jul 16 03:48:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49d73130ca17a19bd68c251451a4ff0c0cdc00e1
      https://github.com/llvm/llvm-project/commit/49d73130ca17a19bd68c251451a4ff0c0cdc00e1
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2021-07-16 (Fri, 16 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    A llvm/test/Transforms/LoopVectorize/AArch64/scalable-alloca.ll

  Log Message:
  -----------
  [LV] Avoid scalable vectorization for loops containing alloca

This patch returns an Invalid cost from getInstructionCost() for alloca
instructions if the VF is scalable, as otherwise loops which contain
these instructions will crash when attempting to scalarize the alloca.

Reviewed By: sdesmalen

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




More information about the All-commits mailing list