Go to file
Sanjay Patel a24296b459 add __builtin_unpredictable and convert to metadata
This patch depends on r246688 (D12341).

The goal is to make LLVM generate different code for these functions for a target that
has cheap branches (see PR23827 for more details):

int foo();

int normal(int x, int y, int z) {
   if (x != 0 && y != 0) return foo();
   return 1;
}

int crazy(int x, int y) {
   if (__builtin_unpredictable(x != 0 && y != 0)) return foo();
   return 1;
}

Differential Revision: http://reviews.llvm.org/D12458

llvm-svn: 246699
2015-09-02 20:01:30 +00:00
clang add __builtin_unpredictable and convert to metadata 2015-09-02 20:01:30 +00:00
clang-tools-extra Updating the code owners list. 2015-09-02 20:00:41 +00:00
compiler-rt CFI: Make the cfi target a dependency of compiler-rt. 2015-09-02 02:18:46 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Update mailing list reference. 2015-08-24 22:43:24 +00:00
libcxx Remove unused code. NFC 2015-08-31 14:43:41 +00:00
libcxxabi Convert LIBCXXABI_BUILD_32_BITS to LLVM_BUILD_32_BITS. 2015-09-01 01:02:06 +00:00
libunwind unwind: cleanup -Wunused-parameter 2015-09-01 04:29:03 +00:00
lld Remove an allocator which was used for just one allocation. 2015-09-02 16:07:11 +00:00
lldb When redirecting stdio, use FILE_SHARE_DELETE. 2015-09-02 17:59:19 +00:00
llgo [llgo] drop debug/DIBuilder.Declare 2015-09-01 11:52:37 +00:00
llvm assuem(X) handling in GVN bugfix 2015-09-02 20:00:03 +00:00
openmp Remove fork_context argument from __kmp_join_call() when OMPT is off 2015-08-31 18:15:00 +00:00
polly ScopInfo: use project_out instead of remove_dims 2015-09-01 18:17:41 +00:00