[llvm-dev] [RFC][Cloning] A potential bug when cloning GV declarations
Min-Yih Hsu via llvm-dev
llvm-dev at lists.llvm.org
Mon Aug 26 06:13:22 PDT 2019
Currently in llvm::CloneModule, if a global variable (GV) is a declaration,
we won't assign a initializer, copy the metadata, and copy the comdat. (
However, if we don't copy metadata for GV declarations, some optimizations
might be missing due to the lack of information provided by metadata.
I'm wondering whether there is any comment or objection if we copy metadata
for GV declarations.
Ph.D Student in ICS Department, University of California, Irvine (UCI).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev