[all-commits] [llvm/llvm-project] ea17d2: [llvm] Do not replace dead constant references in ...
Stephen Tozer via All-commits
all-commits at lists.llvm.org
Mon Jan 24 09:39:27 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ea17d29a6c834a34a698c87193a86eeab04922d2
https://github.com/llvm/llvm-project/commit/ea17d29a6c834a34a698c87193a86eeab04922d2
Author: Stephen Tozer <stephen.tozer at sony.com>
Date: 2022-01-24 (Mon, 24 Jan 2022)
Changed paths:
M llvm/lib/IR/Constants.cpp
A llvm/test/LTO/Resolution/X86/Inputs/no-undef-type-md.ll
A llvm/test/LTO/Resolution/X86/no-undef-type-md.ll
Log Message:
-----------
[llvm] Do not replace dead constant references in metadata with undef
This patch removes an incorrect behaviour in Constants.cpp, which would
replace dead constant references in metadata with an undef value. This
blanket replacement resulted in undef values being inserted into
metadata that would not accept them. The replacement was intended for
debug info metadata, but this is now instead handled in the RAUW
handler.
Differential Revision: https://reviews.llvm.org/D117300
More information about the All-commits
mailing list