LoopVectorizer: Move cse code into its own function