[PATCH] D18804: Provide loop info to inliner

Aditya Kumar via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 12:54:58 PDT 2016


hiraditya created this revision.
hiraditya added reviewers: chandlerc, mcrosier.
hiraditya added subscribers: llvm-commits, sebpop.
hiraditya set the repository for this revision to rL LLVM.

Currently, the  inliner does not take into account if a call is inside a loop. Providing LoopInfo to the inliner would make more informed inlining decisions for calls which are inside a loop.
Passes regression tests.

I'll can more benchmark numbers if this approach appears good enough. If there is a better way to port loop info, please let me know as I can work towards implementing that.

Repository:
  rL LLVM

http://reviews.llvm.org/D18804

Files:
  llvm/include/llvm/Analysis/InlineCost.h
  llvm/include/llvm/Transforms/IPO/InlinerPass.h
  llvm/lib/Analysis/InlineCost.cpp
  llvm/lib/Transforms/IPO/InlineSimple.cpp
  llvm/lib/Transforms/IPO/Inliner.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18804.52726.patch
Type: text/x-patch
Size: 7337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160405/4337d8e9/attachment.bin>


More information about the llvm-commits mailing list