OSDN Git Service

[PowerPC] More fast-isel chunks (returns and integer extends)
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 26 Aug 2013 19:42:51 +0000 (19:42 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Mon, 26 Aug 2013 19:42:51 +0000 (19:42 +0000)
commit055d20742642a7392d5931b61f2ea09c60c204dd
treea3cb653989f719a5e8560bea6bb2e924e32127ba
parent551023c1e4596c7114b8c9ec8ca0fe87e06b10a1
[PowerPC] More fast-isel chunks (returns and integer extends)

Incremental improvement to fast-isel for PPC64.  This allows us to
select on ret, sext, and zext.  Filling in sext/zext improves some of
the existing logic in handling compare-immediates that needed extends.

A simplified return convention for fast-isel is also added to the
PPC64 calling conventions.  All call/return processing for DAG
selection is handled with custom code, so there isn't an existing CC
to rely on here.  The include of PPCGenCallingConv.inc causes compiler
warnings due to the 32-bit calling conventions that are not used, so
the dummy function "usePPC32CCs()" is added here to silence those.

Test cases for the return and extend logic are added.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189266 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCCallingConv.td
lib/Target/PowerPC/PPCFastISel.cpp
lib/Target/PowerPC/PPCInstr64Bit.td
test/CodeGen/PowerPC/fast-isel-ext.ll [new file with mode: 0644]
test/CodeGen/PowerPC/fast-isel-ret.ll [new file with mode: 0644]