[PATCH] D70790: [ARM] Favour post inc for MVE loops
Sjoerd Meijer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 29 01:33:25 PST 2019
SjoerdMeijer accepted this revision.
SjoerdMeijer added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp:67
+// Check if the loop contains any vector code, in which case we modify unroll
+// and favor backedge behaviour.
----------------
nit: "modify unroll"? Perhaps clarify this a bit.
================
Comment at: llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp:80
+bool ARMTTIImpl::shouldFavorBackedgeIndex(const Loop *L) const {
+ if (L->getHeader()->getParent()->hasOptSize())
+ return false;
----------------
Is there a test for optsize?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70790/new/
https://reviews.llvm.org/D70790
More information about the llvm-commits
mailing list