This repository was archived by the owner on Apr 28, 2023. It is now read-only.
Commit 94c1141
Sven Verdoolaege
makeScheduleTreeHelper: create iteration domain in parameter space first
The function makeIslAffBoundsFromExpr currently relies on the names
of the set dimensions in a space. Even though the dependence
is very localized and it is unlikely that those names would
get dropped, it is better to not rely on them at all.
Start by collecting the constraints on the outer loop iterators
in terms of parameters and only convert them into set dimensions
at the point where the iteration domain is constructed.
This means that at least during this part of the construction,
makeIslAffBoundsFromExpr only gets called on parameter spaces.
Treating the outer loop iterators as parameters at first
makes sense because they have a fixed value at the point
where the statement is executed.
It is only at the point where the iteration domain is constructed
that the loop iterators should no longer be considered as parameters.
Since the current loop index can no longer be extracted from
the set dimension, it is obtained from the number
of outer loop iterators instead.1 parent 60f6a2f commit 94c1141
1 file changed
+10
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
| 364 | + | |
370 | 365 | | |
371 | | - | |
| 366 | + | |
372 | 367 | | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
377 | 371 | | |
378 | 372 | | |
379 | | - | |
380 | | - | |
| 373 | + | |
| 374 | + | |
381 | 375 | | |
382 | 376 | | |
383 | 377 | | |
384 | 378 | | |
385 | 379 | | |
386 | 380 | | |
387 | 381 | | |
388 | | - | |
389 | | - | |
| 382 | + | |
390 | 383 | | |
391 | 384 | | |
392 | 385 | | |
| |||
407 | 400 | | |
408 | 401 | | |
409 | 402 | | |
410 | | - | |
| 403 | + | |
411 | 404 | | |
412 | 405 | | |
413 | 406 | | |
| |||
442 | 435 | | |
443 | 436 | | |
444 | 437 | | |
445 | | - | |
| 438 | + | |
446 | 439 | | |
447 | 440 | | |
448 | 441 | | |
| |||
0 commit comments