summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CMakeLists.txt
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2017-02-19 04:28:56 +0000
committerDaniel Berlin <dberlin@dberlin.org>2017-02-19 04:28:56 +0000
commit25f1db11118b8b073cfecd37876fee43228cb9ca (patch)
tree661425b9cd69c3d7dfcda839b256ee3d8eb26c97 /llvm/lib/Support/CMakeLists.txt
parent3cc0d4e0582272b957a7fa50743bf5cd807bf6f6 (diff)
downloadbcm5719-llvm-25f1db11118b8b073cfecd37876fee43228cb9ca.tar.gz
bcm5719-llvm-25f1db11118b8b073cfecd37876fee43228cb9ca.zip
Add initial support for debug counting
Summary: We have support for bisection, and bugpoint can reduce testcases often to a single pass. But that doesn't help reduce it to a single transform by a single pass. Which debug counting lets us do. Debug counting lets you instrument a pass so that it only executes a certain thing (rwhatever you want) after skipping it a certain time of times, and then only does a certain number of executions before saying "skip" again. To make it concrete, for predicateinfo, if i instrument use renaming, i can make it so it skips renaming the first N uses, renames the next N, and then skips the rest. This lets you narrow down a miscompilation to, often, a single transformation, and then also debug it (by using the same command line parameters). Reviewers: chandlerc, davide, mehdi_amini Subscribers: mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D29998 llvm-svn: 295593
Diffstat (limited to 'llvm/lib/Support/CMakeLists.txt')
-rw-r--r--llvm/lib/Support/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/CMakeLists.txt b/llvm/lib/Support/CMakeLists.txt
index f7cfa760ba0..4f7f2166cd0 100644
--- a/llvm/lib/Support/CMakeLists.txt
+++ b/llvm/lib/Support/CMakeLists.txt
@@ -47,6 +47,7 @@ add_llvm_library(LLVMSupport
CrashRecoveryContext.cpp
DataExtractor.cpp
Debug.cpp
+ DebugCounter.cpp
DeltaAlgorithm.cpp
DAGDeltaAlgorithm.cpp
Dwarf.cpp
OpenPOWER on IntegriCloud