clang的等效-ftree-vectorizer-verbose

jcx*_*cxz 19 clang clang++

问题是如何制作clang关于哪些循环(或代码的其他部分)已被矢量化的打印信息.GCC有一个命令行开关命名-ftree-vectorizer-verbose=6为这样做,但我找不到类似的东西clang.是否clang支持此或我唯一的选择是在拆卸偷看?

A. *_* K. 5

clang具有以下选项来打印与矢量化有关的诊断:

-Rpass=loop-vectorize identifies loops that were successfully vectorized.

-Rpass-missed=loop-vectorize identifies loops that failed vectorization and indicates if vectorization was specified.

-Rpass-analysis=loop-vectorize identifies the statements that caused vectorization to fail.
Run Code Online (Sandbox Code Playgroud)

资料来源:http : //llvm.org/docs/Vectorizers.html