Go to file
Hal Finkel 74c2f355d2 Add an Assumption-Tracking Pass
This adds an immutable pass, AssumptionTracker, which keeps a cache of
@llvm.assume call instructions within a module. It uses callback value handles
to keep stale functions and intrinsics out of the map, and it relies on any
code that creates new @llvm.assume calls to notify it of the new instructions.
The benefit is that code needing to find @llvm.assume intrinsics can do so
directly, without scanning the function, thus allowing the cost of @llvm.assume
handling to be negligible when none are present.

The current design is intended to be lightweight. We don't keep track of
anything until we need a list of assumptions in some function. The first time
this happens, we scan the function. After that, we add/remove @llvm.assume
calls from the cache in response to registration calls and ValueHandle
callbacks.

There are no new direct test cases for this pass, but because it calls it
validation function upon module finalization, we'll pick up detectable
inconsistencies from the other tests that touch @llvm.assume calls.

This pass will be used by follow-up commits that make use of @llvm.assume.

llvm-svn: 217334
2014-09-07 12:44:26 +00:00
clang Try to green test/Sema/format-strings.c on Win bots 2014-09-07 04:03:21 +00:00
clang-tools-extra Try to make VS 2012 happy after r217155 2014-09-04 22:41:03 +00:00
compiler-rt builtins: add AEABI div0 functions 2014-09-06 21:34:02 +00:00
debuginfo-tests
libclc add isordered builtin 2014-09-05 13:59:15 +00:00
libcxx PR20546: Fix tests for compare_exchange_weak. 2014-09-06 20:38:25 +00:00
libcxxabi s/LIBCXXABI_SINGLE_THREADED/LIBCXXABI_HAS_NO_THREADS/ for consistency with libcxx 2014-09-05 17:46:40 +00:00
lld Remove dead code. 2014-09-07 01:23:16 +00:00
lldb Correct copied error message 2014-09-06 11:29:08 +00:00
llvm Add an Assumption-Tracking Pass 2014-09-07 12:44:26 +00:00
openmp Fix a crash that occurred under obscure circumstances during library shutdown 2014-09-03 11:34:33 +00:00
polly Fix formatting 2014-08-31 16:21:20 +00:00