[VirtualInstruction] Handle MetadataAsValue as constant.
authorMichael Kruse <llvm@meinersbur.de>
Thu, 3 Aug 2017 22:00:01 +0000 (22:00 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 3 Aug 2017 22:00:01 +0000 (22:00 +0000)
commit1046aa31488b9c7cc6cfbe8847af699c7afb6887
tree4629180645de11826fc2ccded699fee58bcf90f3
parenta52391f2dbff6f93bc29158d9d085ad15cc796ec
[VirtualInstruction] Handle MetadataAsValue as constant.

The complication of bspatch.cc of the AOSP buildbot currently fails
presumably because the occurance of a MetadataAsValue in an operand.
This kind of value can occur as operands of intrinsics, the typical
example being the debug intrinsics.

Polly currently ignores the debug intrinsics and it is not yet clear
which other intrinic might occur. For such cases, and to unbreak the
AOSP buildbot, treat a MetadataAsValue as a constant because it can be
referenced without modification in generated code.

llvm-svn: 309992
polly/lib/Support/VirtualInstruction.cpp