Commit f5b92ae
committed
[Flang][OpenMP] Disable lowering of omp.simd reductions in composites
Currently, the `omp.simd` operation is ignored during MLIR to LLVM IR
translation when it takes part in a composite construct. One consequence of
this limitation is that any entry block arguments defined by that operation
will trigger a compiler crash if they are used anywhere, as they are not
associated to an LLVM IR value at any point.
A previous PR introducing support for the `reduction` clause resulted in the
creation and use of entry block arguments attached to the `omp.simd` operation,
causing compiler crashes on 'do simd reduction(...)' constructs.
This patch disables Flang lowering of simd reductions in 'do simd' constructs
to avoid triggering these errors while translation to LLVM IR is still
incomplete.1 parent 15d8576 commit f5b92ae
1 file changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2209 | 2209 | | |
2210 | 2210 | | |
2211 | 2211 | | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
2212 | 2218 | | |
2213 | 2219 | | |
2214 | 2220 | | |
| |||
2230 | 2236 | | |
2231 | 2237 | | |
2232 | 2238 | | |
2233 | | - | |
2234 | | - | |
2235 | | - | |
| 2239 | + | |
2236 | 2240 | | |
2237 | 2241 | | |
2238 | 2242 | | |
| |||
2325 | 2329 | | |
2326 | 2330 | | |
2327 | 2331 | | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
2328 | 2338 | | |
2329 | 2339 | | |
2330 | 2340 | | |
| |||
2348 | 2358 | | |
2349 | 2359 | | |
2350 | 2360 | | |
2351 | | - | |
2352 | | - | |
2353 | | - | |
| 2361 | + | |
2354 | 2362 | | |
2355 | 2363 | | |
2356 | 2364 | | |
| |||
0 commit comments