llvm-project/llvm/test/CodeGen
Craig Topper 242374e219 [X86] Don't remove sign extend of gather/scatter indices during SelectionDAGBuilder.
The sign extend might be from an i16 or i8 type and was inserted by InstCombine to match the pointer width. X86 gather legalization isn't currently detecting this to reinsert a sign extend to make things legal.

It's a bit weird for the SelectionDAGBuilder to do this kind of optimization in the first place. With this removed we can at least lean on InstCombine somewhat to ensure the index is i32 or i64.

I'll work on trying to recover some of the test cases by removing sign extends in the backend when its safe to do so with an understanding of the current legalizer capabilities.

This should fix PR30690.

llvm-svn: 318466
2017-11-16 23:08:57 +00:00
..
AArch64 [GISel]: Rework legalization algorithm for better elimination of 2017-11-14 22:42:19 +00:00
AMDGPU Let llvm.invariant.group.barrier accepts pointer to any address space 2017-11-16 16:32:16 +00:00
ARC
ARM [ARM GlobalISel] Add tests for BIC. NFC 2017-11-16 13:32:47 +00:00
AVR [AVR] Remove the select-mbb-placement-bug.ll test 2017-11-14 04:32:49 +00:00
BPF bpf: print backward branch target properly 2017-11-16 19:15:36 +00:00
Generic [CodeGen] Peel off the dominant case in switch statement in lowering 2017-11-14 21:44:09 +00:00
Hexagon [Hexagon] Prefer L2_loadrub_io over L4_loadrub_rr 2017-11-02 21:56:59 +00:00
Inputs
Lanai MIR: Print the register class or bank in vreg defs 2017-10-24 18:04:54 +00:00
MIR [MIRPrinter] Use %subreg.xxx syntax for subregister index operands 2017-11-06 21:46:06 +00:00
MSP430
Mips [mips] Improve genConstMult() to work with arbitrary precision 2017-11-15 15:24:04 +00:00
NVPTX [NVPTX] Implement __nvvm_atom_add_gen_d builtin. 2017-11-07 22:10:54 +00:00
Nios2
PowerPC [PPC] Change i32 constant in store instruction to i64 2017-11-16 18:27:34 +00:00
RISCV [RISCV] Re-generate test/CodeGen/RISCV/alu32.ll using update_llc_test_checks.py 2017-11-09 15:45:42 +00:00
SPARC Revert "Re-enable "[MachineCopyPropagation] Extend pass to do COPY source forwarding"" 2017-10-03 16:59:13 +00:00
SystemZ [CodeGen] Peel off the dominant case in switch statement in lowering 2017-11-14 21:44:09 +00:00
Thumb [ARM] Fix incorrect conversion of a tail call to an ordinary call 2017-11-14 10:36:52 +00:00
Thumb2 [arm] Fix Unnecessary reloads from GOT. 2017-11-13 20:45:38 +00:00
WebAssembly [WebAssembly] Update cfg-stackify.ll to remove the workaround added in r318288. 2017-11-15 21:38:33 +00:00
WinEH Make x86 __ehhandler comdat if parent function is 2017-10-20 17:04:43 +00:00
X86 [X86] Don't remove sign extend of gather/scatter indices during SelectionDAGBuilder. 2017-11-16 23:08:57 +00:00
XCore [MC] Suppress .Lcfi labels when emitting textual assembly 2017-10-10 00:57:36 +00:00