Automatic vectorization of code can fail for many reasons. Due to the fact that the compiler often assumes worst case scenarios, a simple fix is often all that is necessary to ensure that vectorization can be completed. By using diagnostics tools integrated into many compilers, such as the Microsoft Visual C++ environment, finding the offending blocks of code and implementing a solution is simplified.