Commit 2a2296b
authored
[flang][acc] Fix incorrect loop body nesting and IV value use (#157708)
Two issues are being resolved:
- Incorrect loop body nesting caused by insertion point not being
updated after the loop. The scenario is now being tested through
`nested_do_loops` function in the test.
- Incorrect IV ssa values due to incorrect handling of scoping.
Additionally, this also adds `--openacc-do-loop-to-acc-loop` flag so
that the implicit conversion can be disabled for testing.1 parent a76dc55 commit 2a2296b
File tree
3 files changed
+192
-17
lines changed- flang
- lib/Lower
- test/Lower/OpenACC
3 files changed
+192
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
2198 | 2199 | | |
2199 | 2200 | | |
2200 | 2201 | | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
2201 | 2207 | | |
2202 | 2208 | | |
2203 | 2209 | | |
| |||
2214 | 2220 | | |
2215 | 2221 | | |
2216 | 2222 | | |
| 2223 | + | |
| 2224 | + | |
2217 | 2225 | | |
2218 | 2226 | | |
2219 | 2227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
5005 | 5010 | | |
5006 | 5011 | | |
5007 | 5012 | | |
| 5013 | + | |
| 5014 | + | |
| 5015 | + | |
5008 | 5016 | | |
5009 | 5017 | | |
5010 | 5018 | | |
| |||
5027 | 5035 | | |
5028 | 5036 | | |
5029 | 5037 | | |
5030 | | - | |
5031 | | - | |
5032 | | - | |
5033 | | - | |
5034 | 5038 | | |
5035 | 5039 | | |
5036 | 5040 | | |
| |||
0 commit comments