NFC. Move isDereferenceable to Loads.h/cpp
authorArtur Pilipenko <apilipenko@azulsystems.com>
Wed, 24 Feb 2016 12:49:04 +0000 (12:49 +0000)
committerArtur Pilipenko <apilipenko@azulsystems.com>
Wed, 24 Feb 2016 12:49:04 +0000 (12:49 +0000)
commit31bcca47d3c5e988826416a42a1bd92d511f5d38
treeecb7adfcfa0ae4a0f538e340edb1ec9777fbda8f
parentae51afc5c7b01c331bf240323a79597cc961ae27
NFC. Move isDereferenceable to Loads.h/cpp

This is a part of the refactoring to unify isSafeToLoadUnconditionally and isDereferenceablePointer functions. In subsequent change I'm going to eliminate isDerferenceableAndAlignedPointer from Loads API, leaving isSafeToLoadSpecualtively the only function to check is load instruction can be speculated.

Reviewed By: hfinkel

Differential Revision: http://reviews.llvm.org/D16180

llvm-svn: 261736
llvm/include/llvm/Analysis/Loads.h
llvm/include/llvm/Analysis/ValueTracking.h
llvm/lib/Analysis/Loads.cpp
llvm/lib/Analysis/MemDerefPrinter.cpp
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp