Refactor a helper function, FactorNodes, to search for a push node in constant space. This resolves a problem in a not-yet-upstreamed backend where a recursive pattern blew the call stack (at a depth of 255) under a debug build of tablegen. No functional change so no new test coverage. The change is minimal to avoid disturbing existing behaviour.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks good. I'm all for eliminating recursion.
utils/TableGen/DAGISelMatcherOpt.cpp | ||
---|---|---|
188 ↗ | (On Diff #85577) | while (!Scope) {? |
Comment Actions
Thank you for the review. Could you commit the patch? I don't have write access to the repo.