[all-commits] [llvm/llvm-project] 5a4de8: [LoopVectorize] Fix crash for predicated instructi...

CarolineConcatto via All-commits all-commits at lists.llvm.org
Thu Jul 22 04:50:45 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a4de84d55faa5502de38b4f7ec6c6ed43d90043
      https://github.com/llvm/llvm-project/commit/5a4de84d55faa5502de38b4f7ec6c6ed43d90043
  Author: Caroline Concatto <caroline.concatto at arm.com>
  Date:   2021-07-22 (Thu, 22 Jul 2021)

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

  Log Message:
  -----------
  [LoopVectorize] Fix crash for predicated instruction with scalable VF

This patch avoids computing discounts for predicated instructions  when the
VF is scalable.
There is no support for vectorization of loops with division because the
vectorizer cannot guarantee that zero divisions will not happen.

This loop now does not use VF scalable

```
for (long long i = 0; i < n; i++)
    if (cond[i])
      a[i] /= b[i];
```

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




More information about the All-commits mailing list