Have the index passing code mostly done - fighting with mem2reg at the moment to get it to undo the necessary temp alloca I used (I need it to undo it so that the vectorizer can actually work).