[PATCH] D30727: Don't merge global constants with !type

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 7 17:16:37 PST 2017


pcc added a comment.

I think there is a pre-existing bug in this pass in that it can effectively *add* metadata to a global (by replacing references to a global without metadata with references to a global with metadata). Can you fix both issues at once by refusing to merge if either global has any metadata at all?


Repository:
  rL LLVM

https://reviews.llvm.org/D30727





More information about the llvm-commits mailing list