Disclaimer: I haven't run the code (I can't install OpenG).
This is a great use of AI. It's much easier to get it to iterate than it is to create. From my own dipping of toes, a defined starting point prevents a lot of the "interpretation" and "misunderstanding" arguments that quickly derail solutions.
From what I remember, your code was a working prototype so you hadn't been through the optimisation process yet. Using AI to do that step was definitely an ideal task for that.
It was impressive that it could compare your code methods with the original ZLIB methods to identify the bulk of the optimisation. I think you would probably have figured out the shortcuts but this was a no-brainer in terms of effort. Even if one didn't trust the AI to rewrite, it would have put the red lazer-dot focus on what needed to be done.
I would have considered the Per-byte overhead optimization as a bug. My default position on non-UI or non-API VI's is that they should be re-entrant subroutine unless a prototype prevents it but this is a subjective evaluation and people are free to differ. The important point, however, is that the AI found it and perhaps even more importantly gave a rationale rather than a rule-of-thumb that mitigates these things. I would even teach it that trick for removing the checking overhead of CLFNs.
The bit-writer is quite an advanced optimisation, IMO. It provides an elegant solution to a non-obvious optimisation opportunity. LabVIEW is particularly poor at bit twiddling. In fact. This could become a de facto generalised method for these kinds of bit manipulations. I'd be very interested in this for the Steganography thing I wrote, for example. My peers didn't seem interested in getting it to run faster so maybe an AI would be a good (better?) alternative.
I think you've made a strong argument for using AI as an optimisation tool. I'd be very interested what your system had to say on software that had been manually optimised by us meat-sacks. We used to post challenge threads for optimisation like the "Fast Trim" which eventually got into OpenG. Do you think those days are over? Or do you think it's just shifted to who's agent optimises this particular code better?