[llvm-bugs] [Bug 42084] New: Passing -Rpass=inline changes the inliner behavior
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 31 00:41:52 PDT 2019
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: unassignedbugs at nondot.org
Reporter: sguelton at redhat.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190531/bee49aa6/attachment-0001.html>
More information about the llvm-bugs
mailing list