[PATCH] D38212: [PowerPC] Add profitablilty check for conversion to mtctr loops

Lei Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 28 10:59:56 PDT 2017


lei updated this revision to Diff 117022.
lei added a comment.

Use CodeMetrics to ensure we are only doing this for small loops with small trip counts.


https://reviews.llvm.org/D38212

Files:
  lib/Target/PowerPC/PPCCTRLoops.cpp
  test/CodeGen/PowerPC/ctr-minmaxnum.ll
  test/CodeGen/PowerPC/ctrloop-shortLoops.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38212.117022.patch
Type: text/x-patch
Size: 10276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170928/d8dae357/attachment.bin>


More information about the llvm-commits mailing list