[VirtualInstruction] Handle MetadataAsValue as constant.
commit83768c04cf4e0db8054437fa2b8efc3b96fd4a4c
authorMichael Kruse <llvm@meinersbur.de>
Thu, 3 Aug 2017 22:00:01 +0000 (3 22:00 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 3 Aug 2017 22:00:01 +0000 (3 22:00 +0000)
tree846cb21886ba08a064d7d0c2c3afb8466e593445
parent44900b45e94843ab76b24f11d37a06809c46758f
[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.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@309992 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/VirtualInstruction.cpp