RL agents excel at solving the compiler phase ordering problem by exploring optimization search spaces as vast as 10^4461 states, uncovering counter-intuitive sequences of passes that significantly boost performance beyond human-engineered strategies.