Go to file
Sanjay Patel df21979db7 [DAG] recognize div/rem by 0 as undef before trying constant folding
As discussed in the review thread for rL297026, this is actually 2 changes that 
would independently fix all of the test cases in the patch:

1. Return undef in FoldConstantArithmetic for div/rem by 0.
2. Move basic undef simplifications for div/rem (simplifyDivRem()) before 
   foldBinopIntoSelect() as a matter of efficiency.

I will handle the case of vectors with any zero element as a follow-up. That change
is the DAG sibling for D30665 + adding a check of vector elements to FoldConstantVectorArithmetic().

I'm deleting the test for PR30693 because it does not test for the actual bug any more
(dangers of using bugpoint).

Differential Revision:
https://reviews.llvm.org/D30741

llvm-svn: 297384
2017-03-09 15:02:25 +00:00
clang Remove a useless subsitution in doxygen2rst which was incorrectly replacing * by \* 2017-03-09 06:41:08 +00:00
clang-tools-extra [include-fixer] Remove line number from Symbol identity 2017-03-09 10:47:44 +00:00
compiler-rt [sanitizer] Fix android buildbots after r297370 2017-03-09 14:40:15 +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 math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx Disable unsigned integer sanitizer for basic_string::replace(). Patch from tomcherry@google.com 2017-03-09 01:54:13 +00:00
libcxxabi Fully Reformat fallback_malloc.cpp 2017-03-04 03:23:15 +00:00
libunwind Fix up the places where AddressSpace.hpp is included. 2017-03-09 08:04:07 +00:00
lld [ELF] - Implemented -znotext 2017-03-09 08:48:34 +00:00
lldb cmake: Increase LINK_INTERFACE_MULTIPLICITY of lldbCore 2017-03-09 10:16:15 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm [DAG] recognize div/rem by 0 as undef before trying constant folding 2017-03-09 15:02:25 +00:00
openmp Fix GNU strerror_r check for Android. 2017-03-07 22:18:05 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [ScopDetect/Info] Allow unconditional hoisting of loads from dereferenceable ptrs 2017-03-09 11:36:00 +00:00