For the following IR test case, Loop vectorizer blocks vectorization of this loop due to high cost of scalar sdiv operation. Manually enabling vectorization using #pragma improves performance ...
Flang emits the following optimization remarks, but the file path is probably wrong. (If it should be the absolute path, / at the head is missing.) $ flang -O1 -fvectorize -Rpass=vector test.f90 ...