[llvm-bugs] [Bug 32531] New: Load hoisting of indirect loads
llvm-bugs at lists.llvm.org
Wed Apr 5 02:35:38 PDT 2017
Bug ID: 32531
Summary: Load hoisting of indirect loads
Assignee: polly-dev at googlegroups.com
Reporter: llvm at meinersbur.de
CC: llvm-bugs at lists.llvm.org
Created attachment 18226
Invariant-load-hoisting pre-loads values before the execution of the SCoP
itself to avoid loading the same value several times and also to make
parameters (like array size) available in the isl sets/maps.
Currently, we cannot load-hoist from pointers that by themselves are defined
within the SCoP, but are themselves invariant. Load-hoisting of invariant
pointers could repeat up to an arbitrary depth.
In the attached example (provided by Roman Gareev) no SCoP is detected because
the loop bound %tmp11 is defined within the SCoP. But it should be invariant,
so could be load-hoisted. However, it is loaded from another pointer
%ref.i.i.i.i.i.i.i.i which itself is a load within the SCoP which should be
Since invariant-load-hoisting is already implemented (Using the
-polly-invariant-load-hoisting), it "only" also needs to be applied recursively
to load-hoisted pointers.
@Roman: If you want to implement this yourself, please claim this bug.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs