Fix a bug in GVN that Duncan noticed, where we potentially need to insert a
authorOwen Anderson <resistor@mac.com>
Thu, 13 Mar 2008 22:07:10 +0000 (22:07 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 13 Mar 2008 22:07:10 +0000 (22:07 +0000)
commit8a97fddbc2c064e295ad5fb6269795bd904e1ed2
tree905cd8e0354587610a352135dad5972c6703193f
parent200d607b45e48f9660985b60ff7c5382f1677368
Fix a bug in GVN that Duncan noticed, where we potentially need to insert a
pointer bitcast when performing return slot optimization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48343 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
test/Transforms/GVN/2008-03-13-ReturnSlotBitcast.ll [new file with mode: 0644]