[VirtualInst] Derive correct use kind of PHI operands. NFC.
commita033aad4e062e201eaba111dfb4ca211c77f3069
authorMichael Kruse <llvm@meinersbur.de>
Tue, 23 Jan 2018 23:56:25 +0000 (23 23:56 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Tue, 23 Jan 2018 23:56:25 +0000 (23 23:56 +0000)
treefea043182538ca0202257aa89ec01a3acc9be6f2
parent735417c3c0ecaef47b4a299ddc165baa8d037dc2
[VirtualInst] Derive correct use kind of PHI operands. NFC.

VirtualUse::create is only called for MemoryKind::Value, but its
consistency nonetheless checked in verifyUses(). PHI uses are always
inter-stmt dependencies, which was not considered by the constructor
method. The virtual and non-virtual execution paths were the same, such
that verifyUses did not encounter any inconsistencies.

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