llvm-project/polly/lib
Michael Kruse d3ce899ddf [ForwardOpTree] Use less computationally expensive method to compute def-to-target map. NFCI.
When forwarding a LoadInst to another statement, a map that translates
their domain is needed. Before this patch, is was computed by appending
the def-to-use map to the def-to-target of the operand tree's target.

This patch lets the new method getDefToTarget do this. This is
computationally less expensive due to:

 * Caching of the result such that it can be used for multiple operands
   tree to the same target.

 * The map is only computed when there is a LoadInst that needs it.

 * It is only computed for the statement requiring the translator map,
   instead of having an intermediate result for every edge in the
  operand tree.

The downside is that this scheme cannot handle forwarding from a
previous loop iteration (which would require the entire path from
statement to target). Since ForwardOpTree currently does not support
forwarding across loop iterations (SCEV expressions would need to be
transformed), this was not needed anyway.

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

llvm-svn: 333426
2018-05-29 15:19:17 +00:00
..
Analysis [ScopInfo] Update Scop::addUserContext() to C++ interface 2018-05-28 07:45:25 +00:00
CodeGen [Acc] Re-land r326643 to finally fix PR33208. 2018-05-23 14:52:35 +00:00
Exchange [CodeGen] Allow undefined loads in statement instances outside context. 2018-04-10 01:20:51 +00:00
External Update isl to isl-0.19-152-g437e6ab0 2018-05-23 20:18:50 +00:00
Support [polly] Drop nonexistant LLVM_PLUGIN_EXPORT macro from llvmGetPassPluginInfo() 2018-05-19 19:16:35 +00:00
Transform [ForwardOpTree] Use less computationally expensive method to compute def-to-target map. NFCI. 2018-05-29 15:19:17 +00:00
CMakeLists.txt [CMake] Use only keyword-version of target_link_library. NFC. 2018-01-12 16:09:18 +00:00
Polly.cpp Drop '@brief' from doxygen comments 2016-09-02 06:33:33 +00:00