]> granicus.if.org Git - clang/commit
[CFG] Cache boolean evaluations of expressions to avoid multiple re-evaluations
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 23 Mar 2012 00:59:17 +0000 (00:59 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 23 Mar 2012 00:59:17 +0000 (00:59 +0000)
commit8c6d360636dee25f1ce071c3656810c6632cb89d
treec508698402a396240200dc46eaf06f587b02b7bc
parent7608a8080bad7ee87a9a50015e9ca63fb214aba2
[CFG] Cache boolean evaluations of expressions to avoid multiple re-evaluations
during construction of branches for chained logical operators.

This makes -fsyntax-only for test/Sema/many-logical-ops.c about 32x times faster.

With measuring SemaExpr.cpp I see differences below the noise level.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153297 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFG.cpp