llvm-project/llvm/test/CodeGen
Bill Schmidt 34af5e1c76 [PowerPC] Add an MI SSA peephole pass.
This patch adds a pass for doing PowerPC peephole optimizations at the
MI level while the code is still in SSA form.  This allows for easy
modifications to the instructions while depending on a subsequent pass
of DCE.  Both passes are very fast due to the characteristics of SSA.

At this time, the only peepholes added are for cleaning up various
redundancies involving the XXPERMDI instruction.  However, I would
expect this will be a useful place to add more peepholes for
inefficiencies generated during instruction selection.  The pass is
placed after VSX swap optimization, as it is best to let that pass
remove unnecessary swaps before performing any remaining clean-ups.

The utility of these clean-ups are demonstrated by changes to four
existing test cases, all of which now have tighter expected code
generation.  I've also added Eric Schweiz's bugpoint-reduced test from
PR25157, for which we now generate tight code.  One other test started
failing for me, and I've fixed it
(test/Transforms/PlaceSafepoints/finite-loops.ll) as well; this is not
related to my changes, and I'm not sure why it works before and not
after.  The problem is that the CHECK-NOT: of "statepoint" from test1
fails because of the "statepoint" in test2, and so forth.  Adding a
CHECK-LABEL in between keeps the different occurrences of that string
properly scoped.

llvm-svn: 252651
2015-11-10 21:38:26 +00:00
..
AArch64 Update test to use explicit triple 2015-11-10 14:09:08 +00:00
AMDGPU DAGCombiner: Check shouldReduceLoadWidth before combining (and (load), x) -> extload 2015-11-06 21:58:37 +00:00
ARM Reapply "[ARM] Combine CMOV into BFI where possible" 2015-11-10 14:22:05 +00:00
BPF [bpf] Do not expand UNDEF SDNode during insn selection lowering 2015-10-08 18:52:40 +00:00
CPP Fix CPP Backend for GEP API changes for opaque pointer types 2015-09-08 18:42:29 +00:00
Generic Revert "[ARM] Remove XFAIL on test/CodeGen/Generic/MachineBranchProb.ll" 2015-10-29 22:34:59 +00:00
Hexagon [Hexagon] Fixing compound register printing and reenabling more tests. 2015-11-10 00:51:56 +00:00
Inputs DI: Reverse direction of subprogram -> function edge. 2015-11-05 22:03:56 +00:00
MIR MachineVerifier: Add missing linebreak 2015-11-09 23:59:29 +00:00
MSP430
Mips [mips] Define patterns for the atomic_{load,store}_{8,16,32,64} nodes. 2015-11-06 12:07:20 +00:00
NVPTX [NVPTX] Let NVPTX backend detect integer min and max patterns. 2015-08-26 23:22:02 +00:00
PowerPC [PowerPC] Add an MI SSA peephole pass. 2015-11-10 21:38:26 +00:00
SPARC Drop assert that a call with struct return goes to a function with sret 2015-10-21 20:05:01 +00:00
SystemZ [SystemZ] Make the CCRegs regclass non-allocatable. 2015-10-29 16:13:55 +00:00
Thumb [ARM] Modify codegen for memcpy intrinsic to prefer LDM/STM. 2015-10-05 14:49:54 +00:00
Thumb2 [ARM] Handle t2ADDri in ARMAsmPrinter::EmitUnwindingInstruction. 2015-11-10 00:10:41 +00:00
WebAssembly [WebAssembly] Support 'unreachable' expression 2015-11-10 00:30:57 +00:00
WinEH [WinEH] Re-committing r252249 (Clone funclets with multiple parents) with additional fixes for determinism problems 2015-11-09 19:59:02 +00:00
X86 [X86] Do not try to custom-lower sitofp/fptosi in soft-float mode 2015-11-10 17:37:49 +00:00
XCore DI: Reverse direction of subprogram -> function edge. 2015-11-05 22:03:56 +00:00