OSDN Git Service

Print vectorization analysis when loop hint is specified.
authorTyler Nowicki <tyler.nowicki@gmail.com>
Tue, 11 Aug 2015 01:09:15 +0000 (01:09 +0000)
committerTyler Nowicki <tyler.nowicki@gmail.com>
Tue, 11 Aug 2015 01:09:15 +0000 (01:09 +0000)
commitf175a4758bace226b0cb6e2e682156c74166075c
tree8b4ec810ee65d8eb5cdaaf07dafb689bad556686
parentad12f71abc7095219608cb5ccfbcb65a328c54eb
Print vectorization analysis when loop hint is specified.

This patch and a relatec clang 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244555 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DiagnosticInfo.h
lib/IR/DiagnosticInfo.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/control-flow.ll
test/Transforms/LoopVectorize/no_outside_user.ll
test/Transforms/LoopVectorize/no_switch.ll