llvm-project/llvm/test/CodeGen
Jonas Paulsson 38342a5185 [DAGCombiner] Don't allow addcarry if the carry producer is illegal.
getAsCarry() checks that the input argument is a carry-producing node before
allowing a transformation to addcarry. This patch adds a check to make sure
that the carry-producing node is legal. If it is not, it may not remain in a
form that is manageable by the target backend. The test case caused a
compilation failure during instruction selection for this reason on SystemZ.

Patch by Ulrich Weigand.

Review: Sanjay Patel
https://reviews.llvm.org/D59822

llvm-svn: 357052
2019-03-27 08:41:46 +00:00
..
AArch64 [DAG] Avoid smart constructor-based dangling nodes. 2019-03-26 15:08:14 +00:00
AMDGPU AMDGPU: Make collapse-endcf test more useful 2019-03-25 21:28:51 +00:00
ARC [ARC] Add ARCOptAddrMode pass to generate postincrement loads/stores. 2019-03-20 20:06:21 +00:00
ARM [DAG] Avoid smart constructor-based dangling nodes. 2019-03-26 15:08:14 +00:00
AVR [DAGCombiner] If a TokenFactor would be merged into its user, consider the user later. 2019-03-13 17:07:09 +00:00
BPF [BPF] fix flaky btf unit test static-var-derived-type.ll 2019-03-22 02:54:47 +00:00
Generic Fix nondeterminism introduced in r353954 2019-03-26 12:18:08 +00:00
Hexagon Add more rotate tests, including ORs of rotates 2019-03-21 17:14:22 +00:00
Inputs
Lanai
MIR MIR: Allow targets to serialize MachineFunctionInfo 2019-03-14 22:54:43 +00:00
MSP430 [DAGCombiner] If a TokenFactor would be merged into its user, consider the user later. 2019-03-13 17:07:09 +00:00
Mips [DAG] Avoid smart constructor-based dangling nodes. 2019-03-26 15:08:14 +00:00
NVPTX [Codegen] fix typos in test case 2019-03-02 08:03:59 +00:00
PowerPC [PowerPC] Remove UseVSXReg 2019-03-26 20:28:21 +00:00
RISCV [RISCV] Update setcc-logic.ll codegen test 2019-03-26 15:41:45 +00:00
SPARC [SelectionDAG] Add icmp UNDEF handling to SelectionDAG::FoldSetCC 2019-03-25 18:51:57 +00:00
SystemZ [DAGCombiner] Don't allow addcarry if the carry producer is illegal. 2019-03-27 08:41:46 +00:00
Thumb [Thumb] Fix infinite loop in ABS expansion (PR41160) 2019-03-21 12:41:18 +00:00
Thumb2 [ARM] Add missing memory operands to a bunch of instructions. 2019-03-25 22:42:30 +00:00
WebAssembly [WebAssembly] Initial implementation of PIC code generation 2019-03-26 19:46:15 +00:00
WinCFGuard
WinEH Fix invalid target triples in tests. (NFC) 2019-03-04 23:37:41 +00:00
X86 [X86] Add test cases for missed opportunities in (x << C1) op C2 to (x op (C2>>C1)) << C1 transform. 2019-03-27 06:07:05 +00:00
XCore [DAGCombiner] If a TokenFactor would be merged into its user, consider the user later. 2019-03-13 17:07:09 +00:00