[all-commits] [llvm/llvm-project] e74527: [AArch64] NFC: Make some AArch64-SVE LoopVectorize...

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Mon Jul 26 12:29:44 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e745277012ec05d1e6f980e05f2a3ea7c827eeec
      https://github.com/llvm/llvm-project/commit/e745277012ec05d1e6f980e05f2a3ea7c827eeec
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

  Changed paths:
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-inductions.ll
    A llvm/test/Transforms/LoopVectorize/scalable-inductions.ll

  Log Message:
  -----------
  [AArch64] NFC: Make some AArch64-SVE LoopVectorize tests generic.

This change moves most of `sve-inductions.ll` to non-AArch64 specific
LV tests using the `-target-supports-scalable-vectors` flag, because they're
not explicitly AArch64-specific. One test builds on AArch64-specific
knowledge regarding masked loads/stores, and remains in sve-inductions.ll.


  Commit: 13ccb097258a244498aa760b878a23de721af29f
      https://github.com/llvm/llvm-project/commit/13ccb097258a244498aa760b878a23de721af29f
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2021-07-26 (Mon, 26 Jul 2021)

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

  Log Message:
  -----------
  [LV] Don't let ForceTargetInstructionCost override Invalid cost.

Invalid costs can be used to avoid vectorization with a given VF, which is
used for scalable vectors to avoid things that the code-generator cannot
handle. If we override the cost using the -force-target-instruction-cost
option of the LV, we would override this mechanism, rendering the flag useless.

This change ensures the cost is only overriden when the original cost that
was calculated is valid. That allows the flag to be used in combination
with the -scalable-vectorization option.

Reviewed By: david-arm

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


Compare: https://github.com/llvm/llvm-project/compare/e42edce4a349...13ccb097258a


More information about the All-commits mailing list