Subtraction was previously implemented recursively. This refactors it to be
non-recursive to avoid issues with potential stack overflows.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Analysis/Presburger/PresburgerRelation.cpp | ||
---|---|---|
185 | Can you call it something other than "local variables" to prevent confusion with "IdKind::Local variables"? | |
185 | Also, don't you have 5 local variables. | |
199 | ||
200–201 | This seems like a broken sentence. | |
231–232 | This comment needs to be updated. | |
244–245 | Why change this to auto? | |
346 | This continue is redundant right? |
Thanks for the review.
mlir/lib/Analysis/Presburger/PresburgerRelation.cpp | ||
---|---|---|
346 | Yes but I prefer to keep it, it seems more consistent with thinking of "recurse" as "increment level and continue". If for some reason someone adds another block below, this block should still work as a "recurse". |
Can you call it something other than "local variables" to prevent confusion with "IdKind::Local variables"?