Treat a call of function pointer like a load of the pointer when considering
authorNick Lewycky <nicholas@mxc.ca>
Wed, 24 Nov 2010 22:04:20 +0000 (22:04 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 24 Nov 2010 22:04:20 +0000 (22:04 +0000)
commit081f80078dccf02c1f9c61378ff88bbf1b4afb5e
tree954d3a339e77290d1191ee8b8f070c328d1821ee
parent25958730dffe0a16f9c251a1fa317799b8419a1f
Treat a call of function pointer like a load of the pointer when considering
whether the pointer can be replaced with the global variable it is a copy of.
Fixes PR8680.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120126 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/2010-11-24-IndirectVoid.ll [new file with mode: 0644]