[PowerPC] Eliminate integer compare instructions - vol. 1
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 11 May 2017 16:54:23 +0000 (16:54 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Thu, 11 May 2017 16:54:23 +0000 (16:54 +0000)
commit96c3d626a277202498349675e1cce2e1f8a8b072
tree492db8a6e3728fa1434724ad4b83bdd5c8c5e6b3
parent40b201c326f13a3ec10036e702f015d91e7877e8
[PowerPC] Eliminate integer compare instructions - vol. 1

This patch is the first in a series of patches to provide code gen for
doing compares in GPRs when the compare result is required in a GPR.

It adds the infrastructure to select GPR sequences for i1->i32 and i1->i64
extensions. This first patch handles equality comparison on i32 operands with
the result sign or zero extended.

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

llvm-svn: 302810
18 files changed:
llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
llvm/lib/Target/PowerPC/PPCFastISel.cpp
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/CodeGen/PowerPC/setcc-logic.ll
llvm/test/CodeGen/PowerPC/testComparesieqsc.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesieqsi.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesieqss.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesiequc.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesiequi.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesiequs.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testCompareslleqsc.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testCompareslleqsi.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testCompareslleqss.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesllequc.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesllequi.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/testComparesllequs.ll [new file with mode: 0644]