llvm-project/llvm/test/CodeGen
Sam Elliott 114d2db49b [RISCV] Fix ICE in isDesirableToCommuteWithShift
Summary:
There was an error being thrown from isDesirableToCommuteWithShift in
some tests. This was tracked down to the method being called before
legalisation, with an extended value type, not a machine value type.

In the case I diagnosed, the error was only hit with an instruction sequence
involving `i24`s in the add and shift. `i24` is not a Machine ValueType, it is
instead an Extended ValueType which was causing the issue.

I have added a test to cover this case, and fixed the error in the callback.

Reviewers: asb, luismarques

Reviewed By: asb

Subscribers: hiraditya, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, kito-cheng, shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna, Jim, llvm-commits

Tags: #llvm

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

llvm-svn: 365511
2019-07-09 16:24:16 +00:00
..
AArch64 [AArch64][GlobalISel] Optimize conditional branches followed by unconditional branches 2019-07-09 16:05:59 +00:00
AMDGPU AMDGPU/GlobalISel: Prepare some tests for store selection 2019-07-09 14:30:57 +00:00
ARC [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
ARM [ARM] Add support for MSVC stack cookie checking 2019-07-07 18:57:31 +00:00
AVR [AVR] Fix tests after r363757 2019-07-04 06:12:47 +00:00
BPF [BPF] Support for compile once and run everywhere 2019-07-09 15:28:41 +00:00
Generic Revert "r364412 [ExpandMemCmp][MergeICmps] Move passes out of CodeGen into opt pipeline." 2019-06-26 12:13:13 +00:00
Hexagon [Hexagon] Custom-lower UADDO(x, 1) and USUBO(x, 1) 2019-07-01 15:50:09 +00:00
Inputs
Lanai [Lanai] auto-generate complete test checks; NFC 2019-06-28 20:45:32 +00:00
MIR AMDGPU: Make s34 the FP register 2019-07-08 19:03:38 +00:00
MSP430 [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
Mips [mips] Show error in case of using FP64 mode on pre MIPS32R2 CPU 2019-07-09 15:48:16 +00:00
NVPTX
PowerPC [NFC][PowerPC] Added a test to show current codegen of MachinePRE 2019-07-09 09:12:17 +00:00
RISCV [RISCV] Fix ICE in isDesirableToCommuteWithShift 2019-07-09 16:24:16 +00:00
SPARC [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
SystemZ [RegisterCoalescer] Fix an overzealous assert 2019-07-06 00:34:54 +00:00
Thumb [ARM] Favour PL/MI over GE/LT when possible 2019-07-04 08:58:58 +00:00
Thumb2 [ARM] Add test for MVE and no floats. NFC 2019-07-09 14:43:17 +00:00
WebAssembly [WebAssembly] Make sret parameter work with AddMissingPrototypes 2019-07-09 02:10:33 +00:00
WinCFGuard
WinEH [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00
X86 [LegalizeTypes] Fix saturation bug for smul.fix.sat 2019-07-09 10:24:50 +00:00
XCore [lit] Delete empty lines at the end of lit.local.cfg NFC 2019-06-17 09:51:07 +00:00