summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/SystemUtils.cpp
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-06-13 20:23:34 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-06-13 20:23:34 +0000
commit4a28e827439692b5ab2e929d175555068ffb16a9 (patch)
tree0f89afe7a375a08ed579cadb626b34c1248457ba /llvm/lib/Support/SystemUtils.cpp
parentadba083bc2349775630ec4fc201f708e8bce67e3 (diff)
downloadbcm5719-llvm-4a28e827439692b5ab2e929d175555068ffb16a9.tar.gz
bcm5719-llvm-4a28e827439692b5ab2e929d175555068ffb16a9.zip
[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. llvm-svn: 183939
Diffstat (limited to 'llvm/lib/Support/SystemUtils.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud