This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Get rid of recursion in findNonImmUse
ClosedPublic

Authored by mkazantsev on Jun 1 2017, 5:47 AM.

Details

Summary

The recursive implementation of findNonImmUse may overflow stack
on extremely long use chains. This patch replaces it with an equivalent
iterative implementation.

Diff Detail

Repository
rL LLVM

Event Timeline

mkazantsev created this revision.Jun 1 2017, 5:47 AM
mkazantsev accepted this revision.Jun 1 2017, 9:37 PM

Approved by @bogner by email.

This revision is now accepted and ready to land.Jun 1 2017, 9:37 PM
This revision was automatically updated to reflect the committed changes.