> Hydra transforms an ungeneralized [peephole] optimization [...] from a developer or a superoptimizer into a generalized version that is often suitable for inclusion in a compiler [llvm]
Example: `y ≠ 0 |= (y:i64 − 42) × 2048 ⇒ (y − 42) ≪ 11` to `IsPowerOf2(C) |= z × C ⇒ z ≪ log2(C)`.
There are plenty of nontrivial transformations that compilers still have yet to do if you are looking for "art". This just automates a class of optimization so it can be done reliably and generally.
This is a little different to art in that it's less subjective: an optimizer that produces faster code (or perhaps smaller code, or some other optimization goal) is better, and this is measurable using benchmarks.
A tool that can give you a better compiler will be used, because people want better compilers.
Example: `y ≠ 0 |= (y:i64 − 42) × 2048 ⇒ (y − 42) ≪ 11` to `IsPowerOf2(C) |= z × C ⇒ z ≪ log2(C)`.