[Bug 265949] llvm prints warnings like: The function '%142 = OpFunction %7 None %134' could not be inlined because the return instruction is not at the end of the function. This could be fixed by running merge-return before inlining.

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 19 Aug 2022 19:40:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265949

            Bug ID: 265949
           Summary: llvm prints warnings like: The function '%142 =
                    OpFunction %7 None %134' could not be inlined because
                    the return instruction is not at the end of the
                    function. This could be fixed by running merge-return
                    before inlining.
           Product: Base System
           Version: 13.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

Testcase: graphics/filament on amd64

LLVM prints warnings like these:
> WARNING: :0:0:0: The function '%142 = OpFunction %7 None %134' could not be inlined because the return instruction is not at the end of the function. This could be fixed by running merge-return before inlining.
> WARNING: :0:0:0: The function '%229 = OpFunction %12 None %221' could not be inlined because the return instruction is not at the end of the function. This could be fixed by running merge-return before inlining.
> WARNING: :0:0:0: The function '%229 = OpFunction %12 None %221' could not be inlined because the return instruction is not at the end of the function. This could be fixed by running merge-return before inlining.
> WARNING: :0:0:0: The function '%229 = OpFunction %12 None %221' could not be inlined because the return instruction is not at the end of the function. This could be fixed by running merge-return before inlining.
> WARNING: :0:0:0: The function '%229 = OpFunction %12 None %221' could not be inlined because the return instruction is not at the end of the function. This could be fixed by running merge-return before inlining.
> WARNING: :0:0:0: The function '%229 = OpFunction %12 None %221' could not be inlined because the return instruction is not at the end of the function. This could be fixed by running merge-return before inlining.

-- 
You are receiving this mail because:
You are the assignee for the bug.