[llvm-bugs] [Bug 52441] New: Debug info makes build results non-deterministic
llvm-bugs at lists.llvm.org
Mon Nov 8 12:34:58 PST 2021
Bug ID: 52441
Summary: Debug info makes build results non-deterministic
Component: Common Code Generator Code
Assignee: unassignedbugs at nondot.org
Reporter: ilya.yanok at gmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 25430
Input that triggers the bug
This was found by Rust here: https://github.com/rust-lang/rust/issues/90301
I was able to extract an LLVM example (see attached).
One can test it with
$ llc -O0 input.ll
Running it several times (usually 10 is enough) you will get slightly different
I've bisected it to commit 1db137b1859692ae33228c530d4df9f2431b2151
Author: Stephen Tozer <Stephen.Tozer at Sony.com>
Date: Wed Mar 10 14:25:09 2021 +0000
[DebugInfo] Handle DBG_VALUES with multiple variable location operands in
This patch adds handling for DBG_VALUE_LIST in the MIR-passes (after
finalize-isel), excluding the debug liveness passes and DWARF emission.
most significantly affects MachineSink, which now needs to consider all
registers of a debug value when sinking, but for most passes this change is
simply replacing getDebugOperand(0) with an iteration over all debug
Differential Revision: https://reviews.llvm.org/D92578
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs