[dfsan] Introduce an optimization to reduce the number of union queries.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 15 Jul 2014 04:41:17 +0000 (04:41 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 15 Jul 2014 04:41:17 +0000 (04:41 +0000)
commitf32aa7addc7dca57f3164a829bcce3ebb1168658
treecadeb401309dddda1b1243900832655fd4d7dbae
parent9e0e56462d1e350290654e880f153d955d35e594
[dfsan] Introduce an optimization to reduce the number of union queries.

Specifically, when building a union query, if we are dominated by an identical
query then use the result of that query instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213047 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
test/Instrumentation/DataFlowSanitizer/union.ll [new file with mode: 0644]