Use the new 'getSlotIndex' method to retrieve the attribute's slot index.
LoopVectorize: Refactor the code that vectorizes loads/stores to remove duplication.