[all-commits] [llvm/llvm-project] be5734: [DebugInfo][InstrRef] Don't fire assertions if deb...
Jeremy Morse via All-commits
all-commits at lists.llvm.org
Thu Feb 10 03:25:32 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: be5734ddaae3521f8ccf3dbf4e747f51aa448936
https://github.com/llvm/llvm-project/commit/be5734ddaae3521f8ccf3dbf4e747f51aa448936
Author: Jeremy Morse <jeremy.morse at sony.com>
Date: 2022-02-10 (Thu, 10 Feb 2022)
Changed paths:
M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h
A llvm/test/DebugInfo/MIR/InstrRef/livedebugvalues_illegal_locs.mir
Log Message:
-----------
[DebugInfo][InstrRef] Don't fire assertions if debug-info is faulty
It's inevitable that optimisation passes will fail to update debug-info:
when that happens, it's best if the compiler doesn't crash as a result.
Therefore, downgrade a few assertions / failure modes that would crash
when illegal debug-info was seen, to instead drop variable locations. In
practice this means that an instruction reference to a nonexistant or
illegal operand should be tolerated.
Differential Revision: https://reviews.llvm.org/D118998
More information about the All-commits
mailing list