[PATCH] D48307: [Inliner] Try to inline if some blocks in the callee have address taken, but not used in a meaningful.

Xin Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 18 19:57:56 PDT 2018


trentxintong created this revision.
trentxintong added reviewers: davide, spatel, chandlerc, asbirlea, davidxl.
Herald added subscribers: llvm-commits, haicheng, eraman.

This patch introduces the hasAddressTakenAndUsed() API for
BasicBlock and make use it in InlineCost and JumpThreading.

I can also split this into 2 patches, i.e. introduce
hasAddressTakenAndUsed() first and make InlineCost use it, then
rewrite Jumpthreading to use it in the second patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D48307

Files:
  include/llvm/IR/BasicBlock.h
  lib/Analysis/InlineCost.cpp
  lib/IR/BasicBlock.cpp
  lib/Transforms/Scalar/JumpThreading.cpp
  test/Transforms/Inline/blockaddress.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48307.151841.patch
Type: text/x-patch
Size: 4234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180619/b1c51e8a/attachment.bin>


More information about the llvm-commits mailing list