Go to file
Philip Reames 4cb4d3e048 Add handling for range metadata in ValueTracking isKnownNonZero
If we load from a location with range metadata, we can use information about the ranges of the loaded value for optimization purposes.  This helps to remove redundant checks and canonicalize checks for other optimization passes.  This particular patch checks whether a value is known to be non-zero from the range metadata.

Currently, these tests are against InstCombine.  In theory, all of these should be InstSimplify since we're not inserting any new instructions.  Moving the code may follow in a separate change.

Reviewed by: Hal
Differential Revision: http://reviews.llvm.org/D5947

llvm-svn: 220925
2014-10-30 20:25:19 +00:00
clang Get rid of SanitizerOptions::Disabled global. NFC. 2014-10-30 19:33:44 +00:00
clang-tools-extra [CMake] clangApplyReplacement: Add clangAST in libdeps to appease msc builder. 2014-10-30 03:22:32 +00:00
compiler-rt Update __dfsw_s{,n}printf custom functions for new calling convention. 2014-10-30 13:23:01 +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 Prune CRLF. 2014-10-27 12:37:26 +00:00
libcxx libcxxrt now implements bad_array_new_length and need to gaurd against multiple defines. Patch from Baptiste Daroussin. 2014-10-29 23:14:53 +00:00
libcxxabi Fix unicode chars into ascii in comment lines. 2014-10-27 08:08:18 +00:00
lld [mach-o] use the addend in GOT-based relocations. 2014-10-30 18:01:07 +00:00
lldb Remove #include <codecvt>. It isn't supported on all compilers. 2014-10-30 19:42:08 +00:00
llvm Add handling for range metadata in ValueTracking isKnownNonZero 2014-10-30 20:25:19 +00:00
openmp I apologise in advance for the size of this check-in. At Intel we do 2014-10-07 16:25:50 +00:00
polly Delete some unnecessary code 2014-10-29 22:09:54 +00:00