[PATCH] D68814: [LV] Allow assume calls in predicated blocks.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 09:54:50 PDT 2019


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

The assume intrinsic is intentionally marked as may reading/writing
memory, to avoid passes moving them around. When flattening the CFG
for predicated blocks, we have to drop the assume calls, as they
are control-flow dependent.

Note that this patch also moves setting State->CFG.PrevVPBB after
we executed the recipes in a VPBB. This way, we have access to the real
VPBB while executing a block.

Fixes PR43620.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D68814

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/lib/Transforms/Vectorize/VPlan.cpp
  llvm/test/Transforms/LoopVectorize/predicate-assume.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68814.224395.patch
Type: text/x-patch
Size: 8508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191010/8f767fff/attachment.bin>


More information about the llvm-commits mailing list