[PATCH] [If Converter] Convert recursion to iteration
ahatanak at gmail.com
Fri Jun 19 18:53:40 PDT 2015
I have a large program that has a CFG structure that looks like this:
(repeat until BB7488)
When I compile this program targeting armv7, function IfConverter::AnalyzeBlock gets called recursively a large number of times, which eventually results in hitting the stack limit and segfaulting.
This patch changes the function to use iteration instead of recursion to avoid the segfault.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 12527 bytes
Desc: not available
More information about the llvm-commits