llvm-project/llvm/test/CodeGen
Ayonam Ray 6025fa8e30 [CodeGen] Omit range checks from jump tables when lowering switches with unreachable default
During the lowering of a switch that would result in the generation of a
jump table, a range check is performed before indexing into the jump
table, for the switch value being outside the jump table range and a
conditional branch is inserted to jump to the default block. In case the
default block is unreachable, this conditional jump can be omitted. This
patch implements omitting this conditional branch for unreachable
defaults.

Differential Revision: https://reviews.llvm.org/D52002
Reviewers: Hans Wennborg, Eli Freidman, Roman Lebedev

llvm-svn: 355483
2019-03-06 07:27:45 +00:00
..
AArch64 [CodeGen] Omit range checks from jump tables when lowering switches with unreachable default 2019-03-06 07:27:45 +00:00
AMDGPU AMDGPU: Preserve undef flag when expanding SI_IF 2019-03-05 18:38:00 +00:00
ARC
ARM [ARM] Fix select_cc lowering for fp16 2019-03-05 10:42:34 +00:00
AVR [AVR] Insert unconditional branch when inserting MBBs between blocks with fallthrough 2019-01-21 04:32:02 +00:00
BPF [BPF] Do not generate BTF sections unnecessarily 2019-03-05 01:01:21 +00:00
Generic [AVR] Remove unneeded XFAILs from the Generic CodeGen tests 2019-01-20 11:16:58 +00:00
Hexagon [Hexagon] Use misaligned load instead of trap0(#0) for __builtin_trap 2019-02-21 19:42:39 +00:00
Inputs
Lanai
MIR [X86] Add FPCW as an implicit use on floating point load instructions. 2019-02-08 20:50:09 +00:00
MSP430 Enable integrated assembler on MSP430 by default. 2019-02-05 18:01:45 +00:00
Mips Revert "[MIPS GlobalISel] Fix mul operands" 2019-03-01 18:58:22 +00:00
NVPTX [Codegen] fix typos in test case 2019-03-02 08:03:59 +00:00
PowerPC [PowerPC] fix killed/dead flag after convert x-form to d-form tranformation. 2019-03-05 04:56:54 +00:00
RISCV [RISCV] Re-organise calling convention tests 2019-02-19 13:47:19 +00:00
SPARC
SystemZ [DAGCombiner][X86][SystemZ][AArch64] Combine some cases of (bitcast (build_vector constants)) between legalize types and legalize dag. 2019-03-04 19:12:16 +00:00
Thumb [Thumb] Add some integer abs testcases for different typesizes. 2019-03-01 12:08:50 +00:00
Thumb2 [ARM] Add some missing thumb1 opcodes to enable peephole optimisation of CMPs 2019-02-22 12:23:31 +00:00
WebAssembly [WebAssembly] Disable MachineBlockPlacement pass 2019-03-05 20:35:34 +00:00
WinCFGuard
WinEH Fix invalid target triples in tests. (NFC) 2019-03-04 23:37:41 +00:00
X86 [CodeGen] Omit range checks from jump tables when lowering switches with unreachable default 2019-03-06 07:27:45 +00:00
XCore