Hi Richard, 在 2024/6/20 16:05, Richard Sandiford 写道: > I'm not sure "profitability" means much in the case of debug insns. > There again, I suppose having no limit on the complexity of debug > insns would risk quadraticness and (even without that) would tend > to increase the size of the on-disk debug info. > > So I agree that the change is correct and that we should continue > to disallow debug insns here.
Your guess is correct. Actually I found very complex debug insns in dump of fwprop pass if gcc doesn't check profitability for debug insns. The compiling of "md5.c" or "sha1.c" can't complete within one night. So I think we should check profitability for debug insns also. I will fix the formatting and submit the patch. Thanks again for your review comments. Thanks Gui Haochen