[PATCH] D59832: [LoopRotation] Allow loop header duplication if vectorization is forced

Adam Nemet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 26 11:47:36 PDT 2019


anemet created this revision.
anemet added reviewers: fhahn, hfinkel, Ayal.
Herald added subscribers: jdoerfert, javed.absar.
Herald added a project: LLVM.

-Oz normally does not allow loop header duplication so this loop wouldn't be
vectorized.  However the vectorization pragma should override this and allow
for loop rotation.

rdar://problem/49281061


Repository:
  rL LLVM

https://reviews.llvm.org/D59832

Files:
  lib/Transforms/Scalar/LoopRotation.cpp
  test/Transforms/LoopVectorize/AArch64/Oz-and-forced-vectorize.ll
  test/Transforms/LoopVectorize/AArch64/Oz-and-unforced-vectorize.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59832.192309.patch
Type: text/x-patch
Size: 7299 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190326/73b90062/attachment.bin>


More information about the llvm-commits mailing list