]> granicus.if.org Git - clang/commit
Remove isIgnored()-test that is more expensive than the analysis behind it
authorDaniel Jasper <djasper@google.com>
Mon, 2 Jan 2017 22:55:45 +0000 (22:55 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 2 Jan 2017 22:55:45 +0000 (22:55 +0000)
commit6f68cf457622bf5d2482055e0e5e4ff87f5139e4
tree747686ac0e97e81a2ea2bde3f0af2039bd2b6c20
parent74e1e751a8083c7b840026b8357229becf374d76
Remove isIgnored()-test that is more expensive than the analysis behind it

In many translation units I have tried, the calls to isIgnored() removed
in this patch are more expensive than doing the analysis that is behind
it. The speed-up in translation units I have tried is between 10 and
20%.

Review: https://reviews.llvm.org/D28208

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290842 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp