llvm-project/polly/test
Nikita Popov 2a721374ae [IR] Don't use blockaddresses as callbr arguments
Following some recent discussions, this changes the representation
of callbrs in IR. The current blockaddress arguments are replaced
with `!` label constraints that refer directly to callbr indirect
destinations:

    ; Before:
    %res = callbr i8* asm "", "=r,r,i"(i8* %x, i8* blockaddress(@test8, %foo))
    to label %asm.fallthrough [label %foo]
    ; After:
    %res = callbr i8* asm "", "=r,r,!i"(i8* %x)
    to label %asm.fallthrough [label %foo]

The benefit of this is that we can easily update the successors of
a callbr, without having to worry about also updating blockaddress
references. This should allow us to remove some limitations:

* Allow unrolling/peeling/rotation of callbr, or any other
  clone-based optimizations
  (https://github.com/llvm/llvm-project/issues/41834)
* Allow duplicate successors
  (https://github.com/llvm/llvm-project/issues/45248)

This is just the IR representation change though, I will follow up
with patches to remove limtations in various transformation passes
that are no longer needed.

Differential Revision: https://reviews.llvm.org/D129288
2022-07-15 10:18:17 +02:00
..
CodeGen [Polly][MatMul] Abandon dependence analysis. 2022-06-29 17:20:05 -05:00
DeLICM [ValueTracking] Enable -branch-on-poison-as-ub by default 2022-06-01 10:46:06 +02:00
DeadCodeElimination Reland "Load pass plugins during option processing, so that plugin options are registered and live." 2022-03-18 03:27:53 +00:00
DependenceInfo [polly] Introduce -polly-print-* passes to replace -analyze. 2022-03-14 10:27:15 -05:00
FlattenSchedule [polly] Introduce -polly-print-* passes to replace -analyze. 2022-03-14 10:27:15 -05:00
ForwardOpTree Reland "Load pass plugins during option processing, so that plugin options are registered and live." 2022-03-18 03:27:53 +00:00
GPGPU [FileCheck] GetCheckTypeAbbreviation() to handle the misspelled case. 2022-05-26 12:20:15 +01:00
IstAstInfo [polly] Introduce -polly-print-* passes to replace -analyze. 2022-03-14 10:27:15 -05:00
JSONExporter [polly] Introduce -polly-print-* passes to replace -analyze. 2022-03-14 10:27:15 -05:00
MaximalStaticExpansion [Polly] Migrate -polly-mse to the new pass manager. 2022-06-01 13:37:58 -05:00
PruneUnprofitable Reland "Load pass plugins during option processing, so that plugin options are registered and live." 2022-03-18 03:27:53 +00:00
ScheduleOptimizer [Polly][MatMul] Abandon dependence analysis. 2022-06-29 17:20:05 -05:00
ScopDetect [IR] Don't use blockaddresses as callbr arguments 2022-07-15 10:18:17 +02:00
ScopDetectionDiagnostics [polly] Introduce -polly-print-* passes to replace -analyze. 2022-03-14 10:27:15 -05:00
ScopInfo [IR] Enable opaque pointers by default 2022-06-02 09:40:56 +02:00
ScopInliner [polly] Introduce -polly-print-* passes to replace -analyze. 2022-03-14 10:27:15 -05:00
Simplify Reland "Load pass plugins during option processing, so that plugin options are registered and live." 2022-03-18 03:27:53 +00:00
Support [polly] Fix NPM unittests after D121566. 2022-03-18 14:25:44 -05:00
Unit [lit] Fix setup of sanitizer environment 2022-05-19 19:24:16 -07:00
UnitIsl
CMakeLists.txt [Polly][test] Add dependency to count. 2021-08-28 22:50:07 -05:00
README
create_ll.sh [polly] Introduce -polly-print-* passes to replace -analyze. 2022-03-14 10:27:15 -05:00
lit.cfg [polly] Fix up regression test config with current features. 2021-07-30 13:44:48 -07:00
lit.site.cfg.in Reland "Load pass plugins during option processing, so that plugin options are registered and live." 2022-03-18 03:27:53 +00:00
polly.ll
update_check.py

README

place tests here