Flip the new block-placement pass to be on by default.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 16 Apr 2012 13:49:17 +0000 (13:49 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 16 Apr 2012 13:49:17 +0000 (13:49 +0000)
commit9e67db4af13abb967cae5858502207a43d26bf84
treebf6e90af917516e3f1e962532b04f4f77fe8a154
parent0de089a4d0db7e47ac8a5d8bd087c196231c7572
Flip the new block-placement pass to be on by default.

This is mostly to test the waters. I'd like to get results from FNT
build bots and other bots running on non-x86 platforms.

This feature has been pretty heavily tested over the last few months by
me, and it fixes several of the execution time regressions caused by the
inlining work by preventing inlining decisions from radically impacting
block layout.

I've seen very large improvements in yacr2 and ackermann benchmarks,
along with the expected noise across all of the benchmark suite whenever
code layout changes. I've analyzed all of the regressions and fixed
them, or found them to be impossible to fix. See my email to llvmdev for
more details.

I'd like for this to be in 3.1 as it complements the inliner changes,
but if any failures are showing up or anyone has concerns, it is just
a flag flip and so can be easily turned off.

I'm switching it on tonight to try and get at least one run through
various folks' performance suites in case SPEC or something else has
serious issues with it. I'll watch bots and revert if anything shows up.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154816 91177308-0d34-0410-b5e6-96231b3b80d8
32 files changed:
lib/CodeGen/Passes.cpp
test/CodeGen/ARM/2011-03-23-PeepholeBug.ll
test/CodeGen/ARM/tail-opts.ll
test/CodeGen/CellSPU/2009-01-01-BrCond.ll
test/CodeGen/Mips/analyzebranch.ll
test/CodeGen/Mips/eh.ll
test/CodeGen/Mips/fpbr.ll
test/CodeGen/Thumb2/thumb2-branch.ll
test/CodeGen/Thumb2/thumb2-ifcvt2.ll
test/CodeGen/Thumb2/thumb2-jtb.ll
test/CodeGen/X86/2006-10-19-SwitchUnnecessaryBranching.ll
test/CodeGen/X86/2008-05-01-InvalidOrdCompare.ll
test/CodeGen/X86/2010-08-04-MaskedSignedCompare.ll
test/CodeGen/X86/block-placement.ll
test/CodeGen/X86/br-fold.ll
test/CodeGen/X86/call-push.ll
test/CodeGen/X86/licm-dominance.ll
test/CodeGen/X86/loop-blocks.ll
test/CodeGen/X86/machine-cp.ll
test/CodeGen/X86/postra-licm.ll
test/CodeGen/X86/pr2659.ll
test/CodeGen/X86/select.ll
test/CodeGen/X86/sibcall.ll
test/CodeGen/X86/sink-hoist.ll
test/CodeGen/X86/smul-with-overflow.ll
test/CodeGen/X86/sub-with-overflow.ll
test/CodeGen/X86/switch-bt.ll
test/CodeGen/X86/tail-opts.ll
test/CodeGen/X86/uint64-to-float.ll
test/CodeGen/X86/xor-icmp.ll
test/CodeGen/XCore/ashr.ll
test/Transforms/LoopStrengthReduce/X86/2012-01-13-phielim.ll