[llvm-bugs] [Bug 24851] New: -inline will not inline a trivial function containing only unreachable
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Sep 16 15:31:14 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24851
Bug ID: 24851
Summary: -inline will not inline a trivial function containing
only unreachable
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Interprocedural Optimizations
Assignee: unassignedbugs at nondot.org
Reporter: david.majnemer at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
consider:
$ cat t.ll
define void @f() {
entry:
tail call void @g()
unreachable
}
define void @g() {
entry:
unreachable
}
$ opt -inline t.ll -S -debug
Inliner visiting SCC: g: 0 call sites.
Inliner visiting SCC: f: 1 call sites.
Analyzing call of g...
NumConstantArgs: 0
NumConstantOffsetPtrArgs: 0
NumAllocaArgs: 0
NumConstantPtrCmps: 0
NumConstantPtrDiffs: 0
NumInstructionsSimplified: 1
NumInstructions: 1
SROACostSavings: 0
SROACostSavingsLost: 0
ContainsNoDuplicateCall: 0
Cost: 0
Threshold: -337
NOT Inlining: cost=0, thres=-337, Call: tail call void @g()
Inliner visiting SCC: INDIRECTNODE: 0 call sites.
; ModuleID = 't.ll'
define void @f() {
entry:
tail call void @g()
unreachable
}
define void @g() {
entry:
unreachable
}
--
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/20150916/2b9f525d/attachment-0001.html>
More information about the llvm-bugs
mailing list