forked from OSchip/llvm-project
37b96d51d0
CodeGenPrepare keeps fairly close track of various instructions it's seen, particularly GEPs, in maps and vectors. However, sometimes those instructions become dead and get removed while it's still executing. This triggers AssertingVH references to them in an asserts build and could lead to miscompiles in a release build (I've only seen a later segfault though). So this patch adds a callback to RecursivelyDeleteTriviallyDeadInstructions which can make sure the instruction about to be deleted is removed from CodeGenPrepare's data structures. |
||
---|---|---|
.. | ||
AArch64 | ||
AMDGPU | ||
ARM | ||
Mips | ||
NVPTX | ||
PowerPC | ||
SPARC | ||
X86 | ||
dom-tree.ll | ||
sink-shift-and-trunc.ll | ||
skip-merging-case-block.ll |