a new simple pass, which will be extended to be more useful in the future.
authorChris Lattner <sabre@nondot.org>
Fri, 15 Apr 2005 19:28:32 +0000 (19:28 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 15 Apr 2005 19:28:32 +0000 (19:28 +0000)
commit36d12733bb4e6da7be2f431ae090b7da317ffb0f
tree08d0709832d3b934442cfe244584ef28cbaa7035
parent73459d097b6439bfa3476036299c4a78724cbb36
a new simple pass, which will be extended to be more useful in the future.

This pass forward branches through conditions when it can show that the
conditions is either always true or false for a predecessor.  This currently
only handles the most simple cases of this, but is successful at threading
across 2489 branches and 65 switch instructions in 176.gcc, which isn't bad.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21306 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CondPropagate.cpp [new file with mode: 0644]