clang-13 regression: -Rpass=inline doesn't display anything on a simple test case #51402
Labels
bugzilla
Issues migrated from bugzilla
clang:driver
'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
worksforme
Resolved as "works for me"
Extended Description
$ 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
The text was updated successfully, but these errors were encountered: