Teach branch folding pass about implicit_def instructions. Unfortunately we can't...
authorEvan Cheng <evan.cheng@apple.com>
Thu, 10 Apr 2008 02:32:10 +0000 (02:32 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 10 Apr 2008 02:32:10 +0000 (02:32 +0000)
commit80b09fe8bc1d2755ef9a6b03b8862a657db42f06
treecf8afab9e8ba4762f875e03061b01171fb14d749
parent0c1963099f350415a2d091ace8ff5f61b8592910
Teach branch folding pass about implicit_def instructions. Unfortunately we can't just eliminate them since register scavenger expects every register use to be defined. However, we can delete them when there are no intra-block uses.  Carefully removing some implicit def's which enable more blocks to be optimized away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49461 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BranchFolding.cpp
test/CodeGen/X86/2007-06-14-branchfold.ll
test/CodeGen/X86/2008-04-09-BranchFolding.ll [new file with mode: 0644]