diff options
author | Florian Hahn <flo@fhahn.com> | 2020-12-17 14:42:12 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2020-12-17 15:20:23 +0000 |
commit | 01089c876bff43a7cde1cb9b1ef8c128169ec5b4 (patch) | |
tree | 1a8af54c51036d9631afd2141c07e80118c2b571 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 923ca0b411f78a3d218ff660a5b7a8b9099bdaa4 (diff) | |
download | llvm-01089c876bff43a7cde1cb9b1ef8c128169ec5b4.zip llvm-01089c876bff43a7cde1cb9b1ef8c128169ec5b4.tar.gz llvm-01089c876bff43a7cde1cb9b1ef8c128169ec5b4.tar.bz2 |
[InstCombine] Preserve !annotation on newly created instructions.
If the source instruction has !annotation metadata, all instructions
created during combining should also have it. Tell the builder to
add it.
The !annotation system was discussed on llvm-dev as part of
'RFC: Combining Annotation Metadata and Remarks'
(http://lists.llvm.org/pipermail/llvm-dev/2020-November/146393.html)
This patch is based on an earlier patch by Francis Visoiu Mistrih.
Reviewed By: thegameg, lebedev.ri
Differential Revision: https://reviews.llvm.org/D91444
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions