hanchenye-llvm-project/polly/test
Tobias Grosser f67433abd9 SCEVAffinator: pass parameter-only set to addRestriction if BB=nullptr
Assumptions can either be added for a given basic block, in which case the set
describing the assumptions is expected to match the dimensions of its domain.
In case no basic block is provided a parameter-only set is expected to describe
the assumption.

The piecewise expressions that are generated by the SCEVAffinator sometimes
have a zero-dimensional domain (e.g., [p] -> { [] : p <= -129 or p >= 128 }),
which looks similar to a parameter-only domain, but is still a set domain.

This change adds an assert that checks that we always pass parameter domains to
addAssumptions if BB is empty to make mismatches here fail early.

We also change visitTruncExpr to always convert to parameter sets, if BB is
null. This change resolves http://llvm.org/PR30941

Another alternative to this change would have been to inspect all code to make
sure we directly generate in the SCEV affinator parameter sets in case of empty
domains. However, this would likely complicate the code which combines parameter
and non-parameter domains when constructing a statement domain. We might still
consider doing this at some point, but as this likely requires several non-local
changes this should probably be done as a separate refactoring.

Reported-by: Eli Friedman <efriedma@codeaurora.org>
llvm-svn: 286444
2016-11-10 11:44:10 +00:00
..
CodeGen/OpenMP Update to ISL 0.17. 2016-05-04 14:41:36 +00:00
DeadCodeElimination [Polly] Remove unwanted --check-prefix=CHECK from unit tests. NFC. 2016-04-15 06:12:29 +00:00
DependenceInfo [GSoC] Do not process SCoPs with infeasible runtime context 2016-07-25 12:40:59 +00:00
FlattenSchedule Add -polly-flatten-schedule pass. 2016-09-08 15:02:36 +00:00
GPGPU GPGPU: add missing REQUIRES line to test case 2016-09-18 08:57:38 +00:00
Isl IslAst: always use the context during ast generation 2016-11-10 09:39:58 +00:00
ScheduleOptimizer IslAst: always use the context during ast generation 2016-11-10 09:39:58 +00:00
ScopDetect Do not allow switch statements in loop latches 2016-11-10 05:20:29 +00:00
ScopDetectionDiagnostics [ScopDetection] Remove redundant checks for endless loops 2016-09-20 17:05:22 +00:00
ScopInfo SCEVAffinator: pass parameter-only set to addRestriction if BB=nullptr 2016-11-10 11:44:10 +00:00
Unit Introduce unittests. 2016-08-25 12:36:15 +00:00
UnitIsl Build and run isl_test as part of check-polly 2016-10-04 19:48:40 +00:00
CMakeLists.txt [cmake] Add polly-isl-test dependency to lit tests. 2016-10-16 21:35:57 +00:00
README
create_ll.sh
lit.cfg
lit.site.cfg.in GPGPU: create default initialized PPCG scop and gpu program 2016-07-14 10:22:19 +00:00
polly.ll
update_check.py Add -polly-flatten-schedule pass. 2016-09-08 15:02:36 +00:00

README

place tests here