llvm-project/llvm/test
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
..
Analysis [ConstantFold] Fix defect in constant folding computation for GEP 2017-03-08 23:01:50 +00:00
Assembler [DebugInfo] Emit address space with DW_AT_address_class attribute for pointer and reference types 2017-03-08 23:55:44 +00:00
Bindings
Bitcode [DebugInfo] Emit address space with DW_AT_address_class attribute for pointer and reference types 2017-03-08 23:55:44 +00:00
BugPoint [IR/Verifier] List the CU we weren't able to find in `llvm.dbg.cu`. 2017-02-20 22:51:42 +00:00
CodeGen [DAG] recognize div/rem by 0 as undef before trying constant folding 2017-03-09 15:02:25 +00:00
DebugInfo AMDGPU: add missing lit.local.cfg to test/DebugInfo/AMDGPU 2017-03-09 00:21:36 +00:00
Examples
ExecutionEngine RuntimeDyldELF/AArch64: Implement basic GOT support 2017-02-06 15:31:28 +00:00
Feature Disable gvn-hoist (PR32153) 2017-03-06 21:10:40 +00:00
FileCheck
Instrumentation [msan] Handle x86_sse_stmxcsr and x86_sse_ldmxcsr. 2017-03-03 01:12:43 +00:00
Integer
JitListener
LTO Perform symbol binding for .symver versioned symbols 2017-03-09 00:19:49 +00:00
LibDriver
Linker Verifier: Disallow a line number without a file in DISubprogram 2017-02-17 23:57:42 +00:00
MC [ARM] remove FIXMEs and add vcmp MC test 2017-03-09 13:28:37 +00:00
Object Write to a temporary file in test instead of random file in the test directory. 2017-02-22 09:02:27 +00:00
ObjectYAML [ObjectYAML] Fix issue with DWARF2 AddrSize 8 2017-03-07 21:34:35 +00:00
Other [PM/Inliner] Make the new PM's inliner process call edges across an 2017-03-09 11:35:40 +00:00
SymbolRewriter
TableGen [globalisel] Decouple src pattern operands from dst pattern operands. 2017-02-24 15:43:30 +00:00
ThinLTO/X86 LTO: Hash the set of imported symbols for each module. 2017-03-03 20:25:30 +00:00
Transforms [PM/Inliner] Make the new PM's inliner process call edges across an 2017-03-09 11:35:40 +00:00
Unit
Verifier [DebugInfo] Emit address space with DW_AT_address_class attribute for pointer and reference types 2017-03-08 23:55:44 +00:00
YAMLParser
tools Fix source-lines test on Windows. 2017-03-07 21:53:21 +00:00
.clang-format
CMakeLists.txt
TestRunner.sh
lit.cfg
lit.site.cfg.in