I would think that in a language like C, the role of the optimizer should
be to do optimizations that are difficult or impossible or time consuming
for the programmer.
My concern is that TBAA has a trade-off in terms of the complexity of the
language for the programmer so I'd like to know if the tradeoff is really
worth it.
BTW: the programmer based hoisting does not depend on the type of bound
being different from the types off arr - so it is more robust.
vy
On Fri, Jun 18, 2021 at 10:33 AM Richard Kenner <kenner at adacore.com>
wrote:
> > The programmer can get this with a simple change, no?
>
> Sure. The programmer can do all sorts of optimizations themselves, in
> fact almost all of them. But the purpose of an optimizer is to do these
> things so that the programmer doesn't have to do that.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20210618/a75663f3/attachment.html>