llvm-project/llvm/test/CodeGen
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
..
AArch64 GlobalISel: correctly handle trivial fcmp predicates. 2017-03-08 18:49:54 +00:00
AMDGPU DAG: Check no signed zeros instead of unsafe math attribute 2017-03-09 01:36:39 +00:00
ARM [DAGCombine] Simplify ISD::AND in GetDemandedBits. 2017-03-08 00:56:35 +00:00
AVR [AVR] Disable integrated assembler for a few tests 2017-02-22 22:41:13 +00:00
BPF [SDAG] Revert r296476 (and r296486, r296668, r296690). 2017-03-03 10:02:25 +00:00
Generic Do not verify MachimeDominatorTree if it is not calculated 2017-03-02 12:00:10 +00:00
Hexagon [Hexagon] Use correct offset when extracting from the high word 2017-03-08 15:46:28 +00:00
Inputs
Lanai [lanai] Simplify small section check in LowerGlobalAddress and treat ldata sections specially. 2016-12-15 16:56:16 +00:00
MIR MIRTests: Remove unnecessary 2>&1 redirection 2017-02-22 18:47:41 +00:00
MSP430 [SDAG] Revert r296476 (and r296486, r296668, r296690). 2017-03-03 10:02:25 +00:00
Mips [mips] Revert fixes for PR32020. 2017-03-09 14:03:26 +00:00
NVPTX [NVPTX] Fixed lowering of unaligned loads/stores of f16 scalars and vectors. 2017-03-07 20:33:38 +00:00
PowerPC Revert "Revert "[PowerPC][ELFv2ABI] Allocate parameter area on-demand to reduce stack frame size"" 2017-03-08 02:41:35 +00:00
SPARC [Sparc] Check register use with isPhysRegUsed() instead of reg_nodbg_empty() 2017-03-08 15:23:10 +00:00
SystemZ [SystemZ] Add check VT.isSimple() in canTreateAsByteVector() 2017-03-07 09:49:31 +00:00
Thumb In Thumb1, materialize a move between low registers as a `movs`, if CPSR isn't live. 2017-03-07 09:38:16 +00:00
Thumb2 [ARM] Replace HasT2ExtractPack with HasDSP 2017-02-17 15:42:44 +00:00
WebAssembly [WebAssembly] Convert the remaining unit tests to the new wasm-object-file target. 2017-02-28 23:37:04 +00:00
WinEH
X86 [DAG] recognize div/rem by 0 as undef before trying constant folding 2017-03-09 15:02:25 +00:00
XCore [SDAG] Revert r296476 (and r296486, r296668, r296690). 2017-03-03 10:02:25 +00:00