You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running my code using cgeist with the --raise-scf-to-affine option, I encountered the following error:
cgeist: ../lib/polygeist/Passes/AffineCFG.cpp:534: AffineApplyNormalizer::AffineApplyNormalizer(mlir::AffineMap, llvm::ArrayRefmlir::Value, mlir::PatternRewriter&, mlir::DominanceInfo&): Assertion `isValidSymbolInt(t, false)' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Use the following minimal code example (saved as test.c) that reproduces the error,run the code using cgeist test.c --raise-scf-to-affine --function=* -S --memref-fullrank -o test.mlir
voidnested_loop_using_variable_as_step(intvali[20][30]) {
intstepx=vali[0][0];
for (intx=0; x<20; x++) {
for (inty=1; y<30; y+=stepx) {
vali[x][y] =1;
}
}
}
The text was updated successfully, but these errors were encountered:
I think lib/polygeist/Passes/AffineCFG.cpp:215fix involves a lambda function attempting to promote the current value to a top level to satisfy the condition “It is defined at the top level of 'region' or is its argument.” If promotion is not possible, the function returns nullptr. In this example, the condition for fix at lib/polygeist/Passes/AffineCFG.cpp:326 is not satisfied, but after applying fix, promotion is possible. Therefore, I modified the condition at line lib/polygeist/Passes/AffineCFG.cpp:335 to include DivUIOp, which resolved the issue.
When running my code using cgeist with the --raise-scf-to-affine option, I encountered the following error:
Use the following minimal code example (saved as test.c) that reproduces the error,run the code using
cgeist test.c --raise-scf-to-affine --function=* -S --memref-fullrank -o test.mlir
The text was updated successfully, but these errors were encountered: