Print vectorization analysis when loop hint is specified.
authorTyler Nowicki <tyler.nowicki@gmail.com>
Tue, 11 Aug 2015 01:10:08 +0000 (01:10 +0000)
committerTyler Nowicki <tyler.nowicki@gmail.com>
Tue, 11 Aug 2015 01:10:08 +0000 (01:10 +0000)
commit65061a293bfcce1c64a6cbf8d2fd56f7019a8911
treead773efc6894f22df12e5a354a36e10f49569804
parentc94d6ad241782de3d44a930db5990162da1c309e
Print vectorization analysis when loop hint is specified.

This patche and a related llvm patch solve the problem of having to explicitly enable analysis when specifying a loop hint pragma to get the diagnostics. Passing AlwasyPrint as the pass name (see below) causes the front-end to print the diagnostic if the user has specified '-Rpass-analysis' without an '=<target-pass>’. Users of loop hints can pass that compiler option without having to specify the pass and they will get diagnostics for only those loops with loop hints.

llvm-svn: 244556
clang/lib/CodeGen/CodeGenAction.cpp
clang/test/Frontend/optimization-remark-analysis.c [new file with mode: 0644]