llvm-project/polly/test
Michael Kruse bc633fe46b [Polly] Consider InvalidContext to determine partial READ.
MemoryAccess::setNewAccessRelation() in assert-builds checks whether the
access relation for a READ has a memory location for every instance of
the domain. Otherwise, we would not have value to load from. That check
already considered that instances outside the Scop's context do not
matter since they are never executed (or would be undefined behavior).
In this patch also take instances of the InvalidContext into account,
as these can also be assumed to never occur. InvalidContext was
introduced to avoid the computational complexity of subtracting
restrictions from the AssumedContext. However, this additional check in
setNewAccessRelation is only done in assert-builds.

The assertion case with an InvalidContext may occur with DeLICM on a
conditionally infinite loops, as it is the case in the following code:

    for (int i = 0; i < n; i+=b)
      vreg = ...;
    *Dest = vreg;

The loop is infinite when b=0, and [b] -> { : b = 0 }  is part of the
InvalidContext. When DeLICM tries to map the memory for %vreg to *Dest,
there is no store instance that uses the value of vreg when b = 0, hence
no location to map it to. However, the case is irrelevant since Polly's
runtime condition check ensures that this is never case.

Fixes llvm.org/PR48445
2020-12-10 22:25:19 -06:00
..
CodeGen
DeLICM [Polly] Consider InvalidContext to determine partial READ. 2020-12-10 22:25:19 -06:00
DeadCodeElimination [BasicAA] Replace -basicaa with -basic-aa in polly 2020-06-30 15:50:17 -07:00
DependenceInfo [BasicAA] Replace -basicaa with -basic-aa in polly 2020-06-30 15:50:17 -07:00
FlattenSchedule
ForwardOpTree [Polly][OpTree] Fix mid-processing change of access kind. 2020-11-11 16:21:48 -06:00
GPGPU Migrate function attribute "no-frame-pointer-elim"="false" to "frame-pointer"="none" as cleanups after D56351 2019-12-24 16:27:51 -08:00
Isl [Polly][CodeGen] Remove use of ScalarEvolution. 2020-12-07 15:21:51 -06:00
JSONExporter Revert "Revert "Reland "[Support] make report_fatal_error `abort` instead of `exit`""" 2020-02-13 10:16:06 -08:00
MaximalStaticExpansion
PruneUnprofitable
RewriteByReferenceParameters
ScheduleOptimizer Polly - specify address space when creating a pointer to a vector type 2020-10-14 11:17:15 -05:00
ScopDetect [BasicAA] Replace -basicaa with -basic-aa in polly 2020-06-30 15:50:17 -07:00
ScopDetectionDiagnostics [BasicAA] Replace -basicaa with -basic-aa in polly 2020-06-30 15:50:17 -07:00
ScopInfo [Polly][ScopBuilder] Use only modeled instructions to compute statement granularity. 2020-11-10 15:30:16 -06:00
ScopInliner
Simplify [Polly][NewPM] Port Simplify to the new pass manager 2020-09-20 19:18:01 -07:00
Support [NewPM] Update pass registration for the LLVM plugin interface 2018-04-17 07:59:46 +00:00
Unit Generalize the pass registration mechanism used by Polly to any third-party tool 2020-01-02 16:45:31 +01:00
UnitIsl
CMakeLists.txt
README
create_ll.sh Pass compiler arguments in the create_ll.sh script 2018-05-02 15:27:32 +00:00
lit.cfg
lit.site.cfg.in Generalize the pass registration mechanism used by Polly to any third-party tool 2020-01-02 16:45:31 +01:00
polly.ll
update_check.py Harmonize Python shebang 2020-07-16 21:53:45 +02:00

README

place tests here