llvm/test/Transforms/PlaceSafepoints
Bill Schmidt 9e24ab7252 [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.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252651 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-10 21:38:26 +00:00
..
basic.ll [Statepoints] Support for "patchable" statepoints. 2015-05-12 23:52:24 +00:00
call_gc_result.ll [PlaceSafepoints] Assertion on that gc_result can not have preceding phis should only apply to invoke statepoint 2015-05-18 19:02:25 +00:00
call-in-loop.ll [Statepoints] Support for "patchable" statepoints. 2015-05-12 23:52:24 +00:00
finite-loops.ll [PowerPC] Add an MI SSA peephole pass. 2015-11-10 21:38:26 +00:00
invokes.ll Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
memset.ll [PlaceSafepoints] Stop special casing some intrinsics 2015-05-19 23:40:11 +00:00
patchable-statepoints.ll [Statepoints] Let patchable statepoints have a symbolic call target. 2015-07-28 23:50:30 +00:00
split-backedge.ll [Statepoints] Support for "patchable" statepoints. 2015-05-12 23:52:24 +00:00
statepoint-calling-conventions.ll Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
statepoint-coreclr.ll Add a GCStrategy for CoreCLR 2015-05-20 01:07:23 +00:00
statepoint-format.ll Move the personality function from LandingPadInst to Function 2015-06-17 20:52:32 +00:00
statepoint-frameescape.ll Rename llvm.frameescape and llvm.framerecover to localescape and localrecover 2015-07-07 22:25:32 +00:00