hanchenye-llvm-project/polly/lib/CodeGen
Tobias Grosser 583be06fb2 [BlockGenerator] Use MemoryAccess::getAccessValue to get load instruction
When generating code in the BlockGenerator we copy all (interesting)
instructions and keep track of the new values in a basic block map. To obtain
the original llvm::Value that belongs to a load memory access, we use
getAccessValue() instead of getOriginalBaseAddr(). The former always references
the instruction we use to load values from. The latter, on the other hand,
is obtaine from the corresponding ScopArrayInfo and would not be unique in
case ScopArrayInfo objects at some point allow memory accesses with different
base addresses.

This change is an update on r294566, which only clarified that we need the
original memory access, but where we still remained dependent to have one
base pointer per scop.

This change removes unnecessary uses of MemoryAddress::getOriginalBaseAddr() in
preparation for https://reviews.llvm.org/D28518.

llvm-svn: 294669
2017-02-09 23:54:23 +00:00
..
BlockGenerators.cpp [BlockGenerator] Use MemoryAccess::getAccessValue to get load instruction 2017-02-09 23:54:23 +00:00
CodeGeneration.cpp [Polly CodeGen] Break critical edge from RTC to original loop. 2016-11-02 22:32:23 +00:00
CodegenCleanup.cpp Try to fix polly buildbots. 2016-07-06 02:21:00 +00:00
IRBuilder.cpp [IRBuilder] Extract base pointers directly from ScopArray 2017-02-09 09:34:42 +00:00
IslAst.cpp [IslAst] Print the ScopArray name to mark reductions 2017-02-09 08:06:15 +00:00
IslExprBuilder.cpp [Polly CodeGen] Break critical edge from RTC to original loop. 2016-11-02 22:32:23 +00:00
IslNodeBuilder.cpp Update to recent formatting changes 2017-02-01 10:12:09 +00:00
LoopGenerators.cpp Fix clang-format 2016-12-19 14:06:40 +00:00
PPCGCodeGeneration.cpp Update to recent formatting changes 2017-02-01 10:12:09 +00:00
RuntimeDebugBuilder.cpp Update for llvm r274769 2016-07-07 18:03:30 +00:00
Utils.cpp [Polly CodeGen] Break critical edge from RTC to original loop. 2016-11-02 22:32:23 +00:00