On Fri, Nov 30, 2018 at 09:04:56AM +0100, Richard Biener wrote:
> So, let's suppose we delay folding of (builtin [string]) calls to some
> first special pass that also diagnoses those issues. One obvious
> place to place this pass would be where we now do the
> early object-size pass. In fact we might want to merge
> the object-size pass with the strlen pass because they sound so
> much related. This pass would then fold the calls and set some
I don't see them related at all and there is nothing they have in common in
the way how they are implemented actually.
That said, the object-size pass is like a fab pass for a single builtin,
so handling in its main loop other builtins is fine.
Jakub