I have a pattern that needs to be applied several times for the rewrite to converge.
I am using applyPatternsAndFoldGreedily.
After scanning 10 times the matchAndRewrite stops with the following message:
The pattern rewrite doesn't converge after scanning 10 times
Is there a way to increase the amount to, let’s say, 25 scanning iterations?
I happen to know it will converge at that point, as I need 24 rewrites.
I don’t think there is a command-line option for this at the moment; it’s controlled by maxPatternMatchIterations. So you might want to increase the number there to try. But it makes sense to me to turn it into a command-line option.
Modifying and rebuilding LLVM works but ideally I don’t use a custom version of LLVM for my project.
It would indeed be nice to have a command-line option: I’ll see if I can submit an issue for it