[all-commits] [llvm/llvm-project] 96d5a5: [LoopUnroll] Add peeling tests with unreachable ex...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Aug 16 01:50:26 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96d5a501c5d9dac2190cd3f6c812860903021982
      https://github.com/llvm/llvm-project/commit/96d5a501c5d9dac2190cd3f6c812860903021982
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-08-16 (Mon, 16 Aug 2021)

  Changed paths:
    A llvm/test/Transforms/LoopUnroll/peel-multiple-unreachable-exits.ll

  Log Message:
  -----------
  [LoopUnroll] Add peeling tests with unreachable exits.


  Commit: 39cc0b8c68b8d316954ecfac0d1f8498ea42866c
      https://github.com/llvm/llvm-project/commit/39cc0b8c68b8d316954ecfac0d1f8498ea42866c
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-08-16 (Mon, 16 Aug 2021)

  Changed paths:
    A llvm/test/Transforms/PhaseOrdering/AArch64/peel-multiple-unreachable-exits-for-vectorization.ll

  Log Message:
  -----------
  [PhaseOrdering] Add test for missed vectorization with vector::at calls.

This test illustrates missed vectorization of loops with multiple
std::vector::at calls, like

    int sum(std::vector<int> *A, std::vector<int> *B, int N) {
      int cost = 0;
      for (int i = 0; i < N; ++i)
        cost += A->at(i) + B->at(i);
      return cost;
    }

https://clang.godbolt.org/z/KbYoaPhvq


Compare: https://github.com/llvm/llvm-project/compare/c97318996fc1...39cc0b8c68b8


More information about the All-commits mailing list