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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs