Drop @llvm.annotation and @llvm.ptr.annotation intrinsics during codegen.
authorJustin Holewinski <jholewinski@nvidia.com>
Tue, 21 May 2013 14:37:16 +0000 (14:37 +0000)
committerJustin Holewinski <jholewinski@nvidia.com>
Tue, 21 May 2013 14:37:16 +0000 (14:37 +0000)
commitc2b7f5fa511420b99dd8238ab4ba769a6a6015a5
tree5cc400d5bf21514da489c673ac6ad7e39c8d499b
parent75e9ee8b7fc2b7c91239f4b9b8d77087fd8ea4e4
Drop @llvm.annotation and @llvm.ptr.annotation intrinsics during codegen.

The intrinsic calls are dropped, but the annotated value is propagated.

Fixes PR 15253

Original patch by Zeng Bin!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182387 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/IntrinsicLowering.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/Generic/annotate.ll [new file with mode: 0644]
test/CodeGen/Generic/ptr-annotate.ll [new file with mode: 0644]