Fix an issue where GVN would try to use an instruction before its definition when...
authorOwen Anderson <resistor@mac.com>
Mon, 25 Feb 2008 00:40:41 +0000 (00:40 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 25 Feb 2008 00:40:41 +0000 (00:40 +0000)
commit0f7ea1ab106ffb3c8e23a87c0687f85132d93ca1
treeab14394d9e8ef2f822a17cec1e7b5757aa7a3e11
parent14fd63cae875b8e41c70f4408b2185abf82d1d60
Fix an issue where GVN would try to use an instruction before its definition when performing return slot optimization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47541 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/2008-02-24-NonDominatedMemcpy.ll [new file with mode: 0644]
test/Transforms/GVN/memcpy.ll