Need to check if we ran into subvector extract pattern before checking for identity vector to avoid compiler crash.