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

            Bug ID: 42084
           Summary: Passing -Rpass=inline changes the inliner behavior
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

As showcased by the output of https://godbolt.org/z/733lM-
Passing -Rpass=inline when compiling

```
#include <stdio.h>
#include <math.h>

static void func4()
{
    for (;;)
        puts("blabla");
}

static void func3()
{
        func4();
}

static void func2()
{
        func3();
}

static void func1()
{
        func2();
}

int main()
{
        func1();
        return 0;
}
```

Changes the output assembly, using the same ``-O2`` flag.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to