[PATCH] D45926: Fix DISubprogram while extracting instructions out of function

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 23 15:26:46 PDT 2018


You can use attributes to force inlining or non-inlining to create a
particular scenario.

On Mon, Apr 23, 2018 at 3:24 PM Aditya Kumar via Phabricator <
reviews at reviews.llvm.org> wrote:

> hiraditya marked 3 inline comments as done.
> hiraditya added inline comments.
>
>
> ================
> Comment at: test/Transforms/MergeSimilarFunc/merge-debug-info-2.ll:58
> +bb:
> +  %tmp = alloca %struct.snork*, align 8
> +  %tmp1 = alloca %struct.snork*, align 8
> ----------------
> aprantl wrote:
> > Is there a reason why this function needs to have more than just a
> single instruction?
> Merge function seem to have some size metric to merge instructions. I
> think it may be possible to reduce a little bit but how much I'm not sure.
>
>
> https://reviews.llvm.org/D45926
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180423/9287fadf/attachment.html>


More information about the llvm-commits mailing list