Obey the isVolatile bit on memory intrinsics when analyzing uses of a global
commit1f237b00279ada1ccce35ab924a7f797d9dea25d
authorNick Lewycky <nicholas@mxc.ca>
Sun, 29 May 2011 18:41:56 +0000 (29 18:41 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 29 May 2011 18:41:56 +0000 (29 18:41 +0000)
tree74c06278eeec0e86abc77fbe35f7132d08e0757b
parent0ccc12ae8bab69d4ec8e265fff1865db9553137f
Obey the isVolatile bit on memory intrinsics when analyzing uses of a global
variable. Noticed by inspection.

Simulate memset in EvaluateFunction where the target of the memset and the
value we're setting are both the null value. Fixes PR10047!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132288 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
test/Transforms/GlobalOpt/memset-null.ll [new file with mode: 0644]