fix PR3537: if resetting bbi back to the start of a block, we need to
authorChris Lattner <sabre@nondot.org>
Thu, 12 Feb 2009 06:56:08 +0000 (06:56 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 12 Feb 2009 06:56:08 +0000 (06:56 +0000)
commit65c02fbf9bda089398a67c887e32a99799afa522
treefdb91e305ba60400d584c73d4a1513bc5a88a902
parentafa77434bb412c358f9d120fe9b2c3bc39da9365
fix PR3537: if resetting bbi back to the start of a block, we need to
forget about already inserted expressions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64362 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
test/CodeGen/X86/2009-02-11-codegenprepare-reuse.ll [new file with mode: 0644]