llvm-project/polly/test
Michael Kruse 87baae85cd [ScopBuilder] Skip getting leader when merging statements to close holes.
Function joinOrderedInstructions merges instructions when a leader is encountered twice.
It also notices that leaders in SeenLeaders may lose their leadership in previous merging,
and tries to handle the case using following code:

    Instruction *PrevLeader = UnionFind.getLeaderValue(SeenLeaders.back());

However, this is wrong because it always gets leader for the last element of SeenLeaders,
and I believe it's wrong even we get leader for Prev here.  As a result, Statements in cases
like the one in patch aren't merged as expected.  After investigation, I believe it's
unnecessary to get leader instruction at all.  This is based on fact: Although leaders in
SeenLeaders could lose leadership, they only lose to others in SeenLeaders, in other words,
one existing leader will be chosen as new leader of merged equivalent statements.  We can
take advantage of this and simply check if current leader equals to Prev and break merging
if it does.

The patch also adds a new test.

Patch by bin.narwal <bin.narwal@gmail.com>

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

llvm-svn: 371801
2019-09-13 01:04:38 +00:00
..
CodeGen Move code generation test case to test/CodeGen/ 2018-03-19 15:05:30 +00:00
DeLICM Update polly test for SCEV change. 2019-07-18 22:35:45 +00:00
DeadCodeElimination
DependenceInfo Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
FlattenSchedule
ForwardOpTree [ScopBuilder] Make -polly-stmt-granularity=scalar-indep the default. 2018-02-03 06:59:47 +00:00
GPGPU [Polly-ACC] Fix test after IR-printer change. 2019-08-13 22:42:08 +00:00
Isl [test] Add wrap flags after D61934. 2019-06-17 19:17:07 +00:00
JSONExporter [ScopBuilder] Make -polly-stmt-granularity=scalar-indep the default. 2018-02-03 06:59:47 +00:00
MaximalStaticExpansion [ScopBuilder] Make -polly-stmt-granularity=scalar-indep the default. 2018-02-03 06:59:47 +00:00
PruneUnprofitable [ScopBuilder] Make -polly-stmt-granularity=scalar-indep the default. 2018-02-03 06:59:47 +00:00
RewriteByReferenceParameters Add rewrite by-reference parameter pass 2017-08-17 05:25:08 +00:00
ScheduleOptimizer [ScheduleOptimizer] Hoist extension nodes after schedule optimization. 2019-05-31 19:26:57 +00:00
ScopDetect [ScopHelper] Provide support for recognising collective invariant loads 2018-06-29 07:29:45 +00:00
ScopDetectionDiagnostics Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
ScopInfo [ScopBuilder] Skip getting leader when merging statements to close holes. 2019-09-13 01:04:38 +00:00
ScopInliner [ScopInliner] Add a simple Scop-based inliner to polly. 2017-08-17 21:57:23 +00:00
Simplify [test] Remove non-JSPON comments in JSCOP file. NFC. 2018-07-28 01:11:45 +00:00
Support [NewPM] Update pass registration for the LLVM plugin interface 2018-04-17 07:59:46 +00:00
Unit Assume the shared library path variable is LD_LIBRARY_PATH on systems 2018-01-20 14:35:05 +00:00
UnitIsl [CMake] Fix polly-isl-test execution in out-of-LLVM-tree builds. 2017-04-22 23:02:53 +00:00
CMakeLists.txt [Polly][CMake] Fix lit setup for building the in the mono repo 2018-03-05 14:43:04 +00:00
README
create_ll.sh Pass compiler arguments in the create_ll.sh script 2018-05-02 15:27:32 +00:00
lit.cfg Resubmit "[lit] Force site configs to run before source-tree configs" 2017-09-15 22:10:46 +00:00
lit.site.cfg.in [NewPM] Update pass registration for the LLVM plugin interface 2018-04-17 07:59:46 +00:00
polly.ll
update_check.py

README

place tests here