diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2016-08-20 10:06:59 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2016-08-20 10:06:59 +0000 |
commit | 51b9a0e8e8ab7b6ad0458163248035afef08d5b4 (patch) | |
tree | 323bd2abb093df828eddc32b8541d71ae1996845 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | 51838888131bdeadbd998c50a141efeb67d73751 (diff) | |
download | bcm5719-llvm-51b9a0e8e8ab7b6ad0458163248035afef08d5b4.tar.gz bcm5719-llvm-51b9a0e8e8ab7b6ad0458163248035afef08d5b4.zip |
[analyzer] Make CloneDetector consider macro expansions.
So far macro-generated code was treated by the CloneDetector as normal code.
This caused that some macros where reported as false-positive clones because
large chunks of code coming from otherwise concise macro expansions were treated
as copy-pasted code.
This patch ensures that macros are treated in the same way as literals/function
calls. This prevents macros that expand into multiple statements
from being reported as clones.
Patch by Raphael Isemann!
Differential Revision: https://reviews.llvm.org/D23316
llvm-svn: 279367
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions