Going the same route as T163562, we'd need a separate table that references logging and includes a hexadecimal representation of the IP address. That way we could query for ranges at Special:Log.
For revision, the new table ip_changes was introduced with: https://gerrit.wikimedia.org/r/#/c/370946/ (T156318)
I'm creating this task to get some input from DBAs on whether this is really feasible. Thanks!