This reverts commit 92f698f0. The updated version of the patch includes handling for non-SCEVable types. A test case has been added in ec86e9a9.