[PowerPC] Disable fast-isel for existing -O0 tests for PowerPC.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 13 Jun 2013 20:23:34 +0000 (20:23 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 13 Jun 2013 20:23:34 +0000 (20:23 +0000)
commit11729224bf93d61ca6c31c02bfe4f1b171f8a4a7
treebfe1f8350798262d4f0df4a434b27aeabebde782
parent2948e693cb9ed0f99e8ba2448459d8a34f091075
[PowerPC] Disable fast-isel for existing -O0 tests for PowerPC.

This is a preliminary patch for fast instruction selection on
PowerPC.  Code generation can differ between DAG isel and fast isel.
Existing tests that specify -O0 were written to expect DAG isel.  Make
this explicit by adding -fast-isel=false to the tests.

In some cases specifying -fast-isel=false produces different code even
when there isn't a fast instruction selector specified.  This is
because TM.Options.EnableFastISel = 1 at -O0 whether or not a FastISel
object exists.  Thus disabling fast isel can actually produce less
conservative code.  Because of this, some of the expected code
generation in the -O0 tests needs to be adjusted.

In particular, handling of function arguments is less conservative
with -fast-isel=false (see isOnlyUsedInEntryBlock() in
SelectionDAGBuilder.cpp).  This results in fewer stack accesses and,
in some cases, reduced stack size as uselessly loaded values are no
longer stored back to spill locations in the stack.

No functional change with this patch; test case adjustments only.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183939 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/PowerPC/anon_aggr.ll
test/CodeGen/PowerPC/emptystruct.ll
test/CodeGen/PowerPC/floatPSA.ll
test/CodeGen/PowerPC/jaggedstructs.ll
test/CodeGen/PowerPC/mcm-4.ll
test/CodeGen/PowerPC/mcm-obj.ll
test/CodeGen/PowerPC/ppc64-align-long-double.ll
test/CodeGen/PowerPC/structsinmem.ll
test/CodeGen/PowerPC/structsinregs.ll
test/CodeGen/PowerPC/vrspill.ll