[PowerPC] Recommit r314244 with refactoring and off by default
commitb3325ffee4b51dffaef3e07b923f88e32ba9e21e
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 30 Nov 2017 13:39:10 +0000 (30 13:39 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 30 Nov 2017 13:39:10 +0000 (30 13:39 +0000)
tree1870c0490873767ee2ff4595a92b4fe33351eed1
parent9e04e3d83293aa3cc1e7484b277dbd8b98e856b6
[PowerPC] Recommit r314244 with refactoring and off by default

This re-commits everything that was pulled in r314244. The transformation
is off by default (patch to enable it to follow). The code is refactored
to have a single entry-point and provide fine-grained control over patterns
that it selects. This patch also fixes the bugs in the original code.

Everything that failed with the original patch has been re-tested with this
patch (with the transformation turned on). So the patch to turn this on is
soon to follow.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319434 91177308-0d34-0410-b5e6-96231b3b80d8
91 files changed:
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
test/CodeGen/PowerPC/CompareEliminationSpillIssue.ll
test/CodeGen/PowerPC/crbits.ll
test/CodeGen/PowerPC/expand-isel.ll
test/CodeGen/PowerPC/memCmpUsedInZeroEqualityComparison.ll
test/CodeGen/PowerPC/optcmp.ll
test/CodeGen/PowerPC/ppc-crbits-onoff.ll
test/CodeGen/PowerPC/setcc-logic.ll
test/CodeGen/PowerPC/testComparesi32gtu.ll
test/CodeGen/PowerPC/testComparesi32leu.ll
test/CodeGen/PowerPC/testComparesi32ltu.ll
test/CodeGen/PowerPC/testComparesieqsc.ll
test/CodeGen/PowerPC/testComparesieqsi.ll
test/CodeGen/PowerPC/testComparesieqsll.ll
test/CodeGen/PowerPC/testComparesieqss.ll
test/CodeGen/PowerPC/testComparesiequc.ll
test/CodeGen/PowerPC/testComparesiequi.ll
test/CodeGen/PowerPC/testComparesiequll.ll
test/CodeGen/PowerPC/testComparesiequs.ll
test/CodeGen/PowerPC/testComparesigesc.ll
test/CodeGen/PowerPC/testComparesigesi.ll
test/CodeGen/PowerPC/testComparesigesll.ll
test/CodeGen/PowerPC/testComparesigess.ll
test/CodeGen/PowerPC/testComparesigeuc.ll
test/CodeGen/PowerPC/testComparesigeui.ll
test/CodeGen/PowerPC/testComparesigeull.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesigeus.ll
test/CodeGen/PowerPC/testComparesigtsc.ll
test/CodeGen/PowerPC/testComparesigtsi.ll
test/CodeGen/PowerPC/testComparesigtsll.ll
test/CodeGen/PowerPC/testComparesigtss.ll
test/CodeGen/PowerPC/testComparesigtuc.ll
test/CodeGen/PowerPC/testComparesigtui.ll
test/CodeGen/PowerPC/testComparesigtus.ll
test/CodeGen/PowerPC/testComparesilesc.ll
test/CodeGen/PowerPC/testComparesilesi.ll
test/CodeGen/PowerPC/testComparesilesll.ll
test/CodeGen/PowerPC/testComparesiless.ll
test/CodeGen/PowerPC/testComparesileuc.ll
test/CodeGen/PowerPC/testComparesileui.ll
test/CodeGen/PowerPC/testComparesileull.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesileus.ll
test/CodeGen/PowerPC/testComparesiltsc.ll
test/CodeGen/PowerPC/testComparesiltsi.ll
test/CodeGen/PowerPC/testComparesiltsll.ll
test/CodeGen/PowerPC/testComparesiltss.ll
test/CodeGen/PowerPC/testComparesiltuc.ll
test/CodeGen/PowerPC/testComparesiltui.ll
test/CodeGen/PowerPC/testComparesiltus.ll
test/CodeGen/PowerPC/testComparesinesc.ll
test/CodeGen/PowerPC/testComparesinesi.ll
test/CodeGen/PowerPC/testComparesinesll.ll
test/CodeGen/PowerPC/testComparesiness.ll
test/CodeGen/PowerPC/testComparesineuc.ll
test/CodeGen/PowerPC/testComparesineui.ll
test/CodeGen/PowerPC/testComparesineull.ll
test/CodeGen/PowerPC/testComparesineus.ll
test/CodeGen/PowerPC/testCompareslleqsc.ll
test/CodeGen/PowerPC/testCompareslleqsi.ll
test/CodeGen/PowerPC/testCompareslleqsll.ll
test/CodeGen/PowerPC/testCompareslleqss.ll
test/CodeGen/PowerPC/testComparesllequc.ll
test/CodeGen/PowerPC/testComparesllequi.ll
test/CodeGen/PowerPC/testComparesllequll.ll
test/CodeGen/PowerPC/testComparesllequs.ll
test/CodeGen/PowerPC/testComparesllgesc.ll
test/CodeGen/PowerPC/testComparesllgesi.ll
test/CodeGen/PowerPC/testComparesllgesll.ll
test/CodeGen/PowerPC/testComparesllgess.ll
test/CodeGen/PowerPC/testComparesllgeuc.ll
test/CodeGen/PowerPC/testComparesllgeui.ll
test/CodeGen/PowerPC/testComparesllgeull.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesllgeus.ll
test/CodeGen/PowerPC/testComparesllgtsll.ll
test/CodeGen/PowerPC/testComparesllgtuc.ll
test/CodeGen/PowerPC/testComparesllgtui.ll
test/CodeGen/PowerPC/testComparesllgtus.ll
test/CodeGen/PowerPC/testCompareslllesc.ll
test/CodeGen/PowerPC/testCompareslllesi.ll
test/CodeGen/PowerPC/testCompareslllesll.ll
test/CodeGen/PowerPC/testComparesllless.ll
test/CodeGen/PowerPC/testComparesllleuc.ll
test/CodeGen/PowerPC/testComparesllleui.ll
test/CodeGen/PowerPC/testComparesllleull.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesllleus.ll
test/CodeGen/PowerPC/testComparesllltsll.ll
test/CodeGen/PowerPC/testComparesllltuc.ll
test/CodeGen/PowerPC/testComparesllltui.ll
test/CodeGen/PowerPC/testComparesllltus.ll
test/CodeGen/PowerPC/testComparesllnesll.ll
test/CodeGen/PowerPC/testComparesllneull.ll