This is an archive of the discontinued LLVM Phabricator instance.

[mlir][affine] Fix an error when symbol is not defined at top level
Needs ReviewPublic

Authored by sotoshigoto on Aug 29 2023, 10:55 PM.

Details

Summary

In the execution of the AffineParallelize pass, when Symbols of
affine.loop are defined in a top-level region without the AffineScope
trait, an assertion error occurs. By changing the Symbol check during
addBound to isValidSymbol, we address this issue by extending the Symbol
condition beyond just top-level region conditions.

This issue was reported at
https://github.com/llvm/llvm-project/issues/64287

Diff Detail