[PATCH] D71071: [LV] Pick correct BB as insert point when fixing PHI for FORs.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 09:46:06 PST 2019


fhahn created this revision.
fhahn added reviewers: hsaito, fhahn, Ayal, dorit.
Herald added subscribers: rkruppe, hiraditya.
Herald added a project: LLVM.

Currently we fail to pick the right insertion point when
PreviousLastPart of a first-order-recurrence is a PHI node not in the
LoopVectorBody. This can happen when PreviousLastPart is produce in a
predicated block. In that case, we should pick the insertion point in
the BB the PHI is in.

Fixes PR44020.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71071

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/SystemZ/predicated-first-order-recurrence.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71071.232370.patch
Type: text/x-patch
Size: 7964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191205/efcf2b4e/attachment.bin>


More information about the llvm-commits mailing list