Commit some changes I had managed to lose last night while refactoring the code....
authorEvan Cheng <evan.cheng@apple.com>
Wed, 13 Jan 2010 19:16:39 +0000 (19:16 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 13 Jan 2010 19:16:39 +0000 (19:16 +0000)
commiteb18812f755b634f3e7554c1912aeb2d7476cb53
tree4b6f92ee09fa75387429d6cb0894504df33df3d3
parent656bb20d61c38966246fbe94afa68f2045841e34
Commit some changes I had managed to lose last night while refactoring the code. Avoid change use of PHI instructions because it's not legal to insert any instructions before them.
This fixes PR6027.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93335 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/OptimizeExts.cpp
test/CodeGen/X86/2010-01-13-OptExtBug.ll [new file with mode: 0644]
test/CodeGen/X86/stack-color-with-reg.ll