[PATCH] D99254: [SVE][LoopVectorize] Fix crash in InnerLoopVectorizer::widenPHIInstruction

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 24 04:25:10 PDT 2021


david-arm created this revision.
david-arm added reviewers: sdesmalen, kmclaughlin, bsmith, craig.topper.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

There were a few places in widenPHIInstruction where calculations of
offsets were failing to take the runtime calculation of VF into
account for scalable vectors. I've fixed those cases in this patch
as well as adding an assert that we should not be scalarising for
scalable vectors.

A test is added here:

  Transforms/LoopVectorize/AArch64/sve-widen-phi.ll


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D99254

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/AArch64/sve-widen-phi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99254.332937.patch
Type: text/x-patch
Size: 7749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210324/6e3f1d23/attachment.bin>


More information about the llvm-commits mailing list