[llvm-bugs] [Bug 52060] New: clang-13 regression: -Rpass=inline doesn't display anything on a simple test case

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 4 00:14:31 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=52060

            Bug ID: 52060
           Summary: clang-13 regression:  -Rpass=inline doesn't display
                    anything on a simple test case
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk
            Blocks: 51236

$ export VERSION=12
$ echo "
int foo(int x, int y) __attribute__((always_inline));
int foo(int x, int y) { return x + y; }
int bar(int j) { return foo(j, j - 2); }" > foo.cc

$ clang-$VERSION -O2 -Rpass=inline foo.cc -c
foo.cc:4:25: remark: _Z3fooii inlined into _Z3bari with (cost=always): always
inline attribute at callsite bar:0:25; [-Rpass=inline]
int bar(int j) { return foo(j, j - 2); }

$ export VERSION=13 
$ echo "
int foo(int x, int y) __attribute__((always_inline));
int foo(int x, int y) { return x + y; }
int bar(int j) { return foo(j, j - 2); }" > foo.cc

$ clang-$VERSION -O2 -Rpass=inline foo.cc -c

=> Empty


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=51236
[Bug 51236] [meta] 13.0.0 Release Blockers
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211004/8cad06d5/attachment.html>


More information about the llvm-bugs mailing list