]> granicus.if.org Git - llvm/commit
[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)
commit0470a16690504b89116cfcfae64c8a0ba7f85758
treee915483722f4107ab62dd3e880589e2e501d8be2
parent44303fa5c83db8c618c48623d70aea68c9cf9af3
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302810 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
lib/Target/PowerPC/PPCFastISel.cpp
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCInstr64Bit.td
lib/Target/PowerPC/PPCInstrInfo.td
test/CodeGen/PowerPC/setcc-logic.ll
test/CodeGen/PowerPC/testComparesieqsc.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesieqsi.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesieqss.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesiequc.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesiequi.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesiequs.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testCompareslleqsc.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testCompareslleqsi.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testCompareslleqss.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesllequc.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesllequi.ll [new file with mode: 0644]
test/CodeGen/PowerPC/testComparesllequs.ll [new file with mode: 0644]