Commit de0ea40
committed
[Flang][OpenMP] Fix allocatable -ve bounds mapping issue found in SWDEV-548635
This should fix the problem in SWDEV-548635 and seems fairly stable from the POV of
my local tests, but, need to see how it fairs against the nightly testing.
The issue was primarily that the previous intermediate map generation for allocatable
members wasn't quite handling negative bounds acccesses correctly, it seems to require
slightly more complicated access using shape_shift/dimension information. So this more
closely mimics what Flang generates in other cases now.
There is still a path for non-Box types to go down the old route for the moment, so it
is possible we may still have issues with negative bounds in these cases. But, that's
better in another PR if we come across it, instead of too much change in this one.1 parent 039d374 commit de0ea40
File tree
2 files changed
+51
-22
lines changed- flang
- lib/Lower/OpenMP
- test/Integration/OpenMP
2 files changed
+51
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
199 | | - | |
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 201 | + | |
| 202 | + | |
209 | 203 | | |
210 | 204 | | |
211 | 205 | | |
| |||
338 | 332 | | |
339 | 333 | | |
340 | 334 | | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
345 | 370 | | |
346 | 371 | | |
347 | 372 | | |
| |||
431 | 456 | | |
432 | 457 | | |
433 | 458 | | |
434 | | - | |
435 | 459 | | |
436 | 460 | | |
437 | 461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
789 | 793 | | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
798 | 803 | | |
799 | 804 | | |
800 | 805 | | |
| |||
839 | 844 | | |
840 | 845 | | |
841 | 846 | | |
842 | | - | |
| 847 | + | |
843 | 848 | | |
844 | 849 | | |
845 | 850 | | |
| |||
0 commit comments