[ForwardOpTree] Reload know values.
commit77b8bb85cda1ee461bd6fb1f3e44d68d713147da
authorMichael Kruse <llvm@meinersbur.de>
Fri, 27 Oct 2017 14:26:14 +0000 (27 14:26 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Fri, 27 Oct 2017 14:26:14 +0000 (27 14:26 +0000)
tree217065e9154861cfef5fc8c4f557f3c6b3c98135
parentac234a3b9f20f11b3d897734fb9a4ac73e91b298
[ForwardOpTree] Reload know values.

For scalar accesses, change the access target to an array element that
is known to contain the same value.

This may become an alternative to forwardKnownLoad which creates new
loads (and therefore closer to forwarding speculatives). Reloading does
not require the known value originating from a load, but can be a store
as well.

Differential Revision: https://reviews.llvm.org/D39325

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@316766 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transform/ForwardOpTree.cpp
test/ForwardOpTree/forward_store.ll [new file with mode: 0644]