Add back FoldOpIntoPhi optimizations with fix. Included test cases to help catch...
authorMichael Ilseman <milseman@apple.com>
Fri, 14 Dec 2012 22:08:26 +0000 (22:08 +0000)
committerMichael Ilseman <milseman@apple.com>
Fri, 14 Dec 2012 22:08:26 +0000 (22:08 +0000)
commit07acee7a09c4895904f827bf56cf15f6bf8ef9f6
treecafd842626c45de0922e450d9c8ae9f3b509a074
parentf53e7cb9b95677dcc2181485fed8cb592056b805
Add back FoldOpIntoPhi optimizations with fix. Included test cases to help catch these errors and to test the presence of the optimization itself

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170248 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/fold-phi.ll [new file with mode: 0644]