This is a follow-up to the previous changes that fold ptrtoint(gep null).
FIXME: I am not sure if folding two variable indices is beneficial (while
it removes a pointer operation it does add more instructions) or if we
should restrict it to a single variable index.
Depends on D110247