[PATCH] D52716: [Inliner] Penalise inlining of calls with loops at Oz

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 24 09:12:07 PDT 2018


dmgreen updated this revision to Diff 170910.
dmgreen added a comment.

Now ignores loops that will never be executed. I also have some code that uses SCEV to calculate if the backedge count is <= 1 and allow inlining there. It doesn't seem to come up very often though and needed some plumbing to get SE's/TLI's in the right places.

Eli, what do you think between this and https://reviews.llvm.org/D53405?


https://reviews.llvm.org/D52716

Files:
  lib/Analysis/InlineCost.cpp
  test/Transforms/Inline/ARM/loop-add.ll
  test/Transforms/Inline/ARM/loop-memcpy.ll
  test/Transforms/Inline/ARM/loop-noinline.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52716.170910.patch
Type: text/x-patch
Size: 10840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181024/5f4784b7/attachment.bin>


More information about the llvm-commits mailing list