[PATCH] D64916: [LV] isScalarEpilogueAllowed. NFC.

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 18 06:06:06 PDT 2019


SjoerdMeijer created this revision.
SjoerdMeijer added reviewers: fhahn, RKSimon, hsaito, samparker, dmgreen, Meinersbur.
Herald added subscribers: rkruppe, hiraditya.
Herald added a project: LLVM.

This refactors boolean 'OptForSize' that was passed around in a lot of places
into isScalarEpilogueAllowed, which was already part of the CostModel.  This
boolean controls folding of the tail loop, the scalar epilogue, into the main
loop but code-size reasons may not be the only reason to do this. Thus, this is
a first step to generalise this, and hence OptForSize has been renamed to
isScalarEpilogueAllowed.


https://reviews.llvm.org/D64916

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64916.210538.patch
Type: text/x-patch
Size: 13283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190718/672a3ba6/attachment.bin>


More information about the llvm-commits mailing list