Reimplement BranchFolding change to avoid tail merging for a 1 instruction
authorBob Wilson <bob.wilson@apple.com>
Wed, 28 Oct 2009 22:10:20 +0000 (22:10 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 28 Oct 2009 22:10:20 +0000 (22:10 +0000)
commit2c04dae715b05017d7d2c19ab4f8cb37c1e650ae
tree7302c827c3bf5c86d4afc419d97268738dc4d2e2
parente841d2f8679f603ec453fe56a3bf9bea97aef303
Reimplement BranchFolding change to avoid tail merging for a 1 instruction
common tail, except when the OptimizeForSize function attribute is present.
Radar 7338114.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85441 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BranchFolding.cpp
test/CodeGen/X86/2008-02-18-TailMergingBug.ll
test/CodeGen/X86/2008-05-12-tailmerge-5.ll
test/CodeGen/X86/convert-2-addr-3-addr-inc64.ll