[llvm-bugs] [Bug 45789] New: Inlining threshold calculation is non-deterministic
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun May 3 22:56:48 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45789
Bug ID: 45789
Summary: Inlining threshold calculation is non-deterministic
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: yikong at google.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
Created attachment 23438
--> https://bugs.llvm.org/attachment.cgi?id=23438&action=edit
Reproduce script
We identified that libpdfium build is non-deterministic. This only seems to
reproduce on Ubuntu 14.04 and 16.04, while always produces consistent result on
Ubuntu 18.04. The first point of divergence is in the Inliner pass, and the
difference is that the calculated inlining threshold for `_ZN1kD2Ev` being
different.
== 6ffcaa ==
/tmp/test/cpdf_image.cpp:31:24: remark: _ZN1kD2Ev not inlined into
_ZN10CPDF_Image1qEv because too costly to inline (cost=45, threshold=45)
[-Rpass-missed=inline]
== e995bd ==
/tmp/test/cpdf_image.cpp:31:24: remark: _ZN1kD2Ev inlined into
_ZN10CPDF_Image1qEv with (cost=45, threshold=325) [-Rpass=inline]
Reproduce script based on Docker is attached.
--
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/20200504/53a8ef91/attachment.html>
More information about the llvm-bugs
mailing list