Treat a call of function pointer like a load of the pointer when considering
commitb5dccfab0cab8a28580e18bb65e712f131c7a766
authorNick Lewycky <nicholas@mxc.ca>
Wed, 24 Nov 2010 22:04:20 +0000 (24 22:04 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 24 Nov 2010 22:04:20 +0000 (24 22:04 +0000)
tree954d3a339e77290d1191ee8b8f070c328d1821ee
parentfd32693f862c100ff76c50d4cb7680bafe08d915
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]