Add pass to remove non-constant array access