llvm-project
0faf6dfb - [flang] Do not hoist loop-like operations in LICM (#236056)

Commit
35 days ago
[flang] Do not hoist loop-like operations in LICM (#236056) Hoisting a loop out of the loop it is nested in changes how it is scheduled relative to the iterations of the enclosing loop. For example, an inner loop of an OpenACC parallel loop that ends up outside of the parallel loop is no longer executed by every iteration of it, and can then be mapped to parallel dimensions on its own and compute wrong results. Skip operations implementing LoopLikeOpInterface, including when they are nested in a hoistable operation.
Author
Parents
Loading