Patrick Alexander Simmons
2009-Aug-07 21:45 UTC
[LLVMdev] DSA getNodeForValue() Returning NULL Sometimes
I'm iterating over all LoadInst and StoreInst-type Instructions in a Function, and getNodeForValue() is sometimes returning NULL. Why is this happening? Shouldn't every load from or store to memory correspond to some DSNode? --Patrick
Andrew Lenharth
2009-Aug-07 21:50 UTC
[LLVMdev] DSA getNodeForValue() Returning NULL Sometimes
On Fri, Aug 7, 2009 at 4:45 PM, Patrick Alexander Simmons<simmon12 at cs.uiuc.edu> wrote:> I'm iterating over all LoadInst and StoreInst-type Instructions in a > Function, and getNodeForValue() is sometimes returning NULL. Why is > this happening? Shouldn't every load from or store to memory correspond > to some DSNode?Not if the pointer is null or the pointer contains no information in the pass you are querying. Andrew
Patrick Alexander Simmons
2009-Aug-07 22:03 UTC
[LLVMdev] DSA getNodeForValue() Returning NULL Sometimes
Andrew Lenharth wrote:> On Fri, Aug 7, 2009 at 4:45 PM, Patrick Alexander > Simmons<simmon12 at cs.uiuc.edu> wrote: > >> I'm iterating over all LoadInst and StoreInst-type Instructions in a >> Function, and getNodeForValue() is sometimes returning NULL. Why is >> this happening? Shouldn't every load from or store to memory correspond >> to some DSNode? >> > > > Not if the pointer is null or the pointer contains no information in > the pass you are querying. > > Andrew > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >The program I'm analyzing is not dereferencing NULL pointers. I'm querying the EquivBUDataStructures pass; what instances would cause the DSGraph not to have any information about the pointer (and I thought Unknown DSNodes were created for when we couldn't figure out the pointer value?). Thanks, --Patrick
Maybe Matching Threads
- [LLVMdev] DSA getNodeForValue() Returning NULL Sometimes
- [LLVMdev] DSA getNodeForValue() Returning NULL Sometimes
- [LLVMdev] DSA getNodeForValue() Returning NULL Sometimes
- [LLVMdev] DSA getNodeForValue() Returning NULL Sometimes
- [LLVMdev] DSA getNodeForValue() Returning NULL Sometimes