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
- Build Status
Buildable 3309 Build 3309: arc lint + arc unit
Event Timeline
Comment Actions
Looks good. I'm all for eliminating recursion.
utils/TableGen/DAGISelMatcherOpt.cpp | ||
---|---|---|
188 | while (!Scope) {? |
Comment Actions
Thank you for the review. Could you commit the patch? I don't have write access to the repo.
while (!Scope) {?