[DeLICM] Lookup input accesses.
commit6f84f80d497a07731949305442adff9f17c042cb
authorMichael Kruse <llvm@meinersbur.de>
Thu, 11 May 2017 22:56:46 +0000 (11 22:56 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Thu, 11 May 2017 22:56:46 +0000 (11 22:56 +0000)
treefe74cee35901d7c8cba3250782e326abbd4863fe
parent6a10b36c951a2062e83e0b7efb65bf79d3f2e615
[DeLICM] Lookup input accesses.

Previous to this patch, we used VirtualUse to determine the input
access of an llvm::Value in a statement. The input access is the
READ MemoryAccess that makes a value available in that statement,
which can either be a READ of a MemoryKind::Value or the
MemoryKind::PHI for a PHINode in the statement. DeLICM uses the input
access to heuristically find a candidate to map without searching all
possible values.

This might modify the behaviour in that previously PHI accesses were
not considered input accesses before. This was unintentially lost when
"VirtualUse" was extracted from the "Known Knowledge" patch.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@302838 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/ScopInfo.h
lib/Analysis/ScopInfo.cpp
lib/Transform/DeLICM.cpp