[llvm-commits] [llvm] r111972 - /llvm/trunk/lib/Analysis/LazyValueInfo.cpp
Owen Anderson
resistor at mac.com
Tue Aug 24 15:00:55 PDT 2010
Author: resistor
Date: Tue Aug 24 17:00:55 2010
New Revision: 111972
URL: http://llvm.org/viewvc/llvm-project?rev=111972&view=rev
Log:
NULL loads are only invalid in the default address space.
Modified:
llvm/trunk/lib/Analysis/LazyValueInfo.cpp
Modified: llvm/trunk/lib/Analysis/LazyValueInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyValueInfo.cpp?rev=111972&r1=111971&r2=111972&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyValueInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyValueInfo.cpp Tue Aug 24 17:00:55 2010
@@ -460,7 +460,7 @@
for (Value::use_iterator UI = Val->use_begin(), UE = Val->use_end();
UI != UE; ++UI) {
LoadInst *L = dyn_cast<LoadInst>(*UI);
- if (L && L->getParent() == BB) {
+ if (L && L->getParent() == BB && L->getPointerAddressSpace() == 0) {
return LVILatticeVal::getNot(ConstantPointerNull::get(PTy));
}
}
More information about the llvm-commits
mailing list