[Simplify] Fix invalid removal write for escaping values.
commit3def0456b0e9547fd8f4ecc367d98a4d2207f089
authorMichael Kruse <llvm@meinersbur.de>
Wed, 26 Jul 2017 19:58:15 +0000 (26 19:58 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Wed, 26 Jul 2017 19:58:15 +0000 (26 19:58 +0000)
treebd638ff80c9d8bdd72720356c36bd366defedd20
parent3952c3edf21894ce4126ad924f12af912bcb4667
[Simplify] Fix invalid removal write for escaping values.

A PHI node's incoming block is the user of its operand, not the PHI's parent.

Assuming the PHINode's parent being the user lead to the removal of a
MemoryAccesses because its use was assumed to be inside of the SCoP.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@309164 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/VirtualInstruction.cpp
test/Simplify/out-of-scop-use-in-region-entry-phi-node.ll [new file with mode: 0644]