summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorArtur Pilipenko <apilipenko@azulsystems.com>2016-01-15 15:27:46 +0000
committerArtur Pilipenko <apilipenko@azulsystems.com>2016-01-15 15:27:46 +0000
commit6dd6969cee28a71ce6dad138a73ff703c5d43d55 (patch)
tree58e4e542c72f99e80c923f79adb28c784f3e5aba /llvm/lib/Analysis
parent895242f9fbb050d896064ab9eb330e8535e2f96f (diff)
downloadbcm5719-llvm-6dd6969cee28a71ce6dad138a73ff703c5d43d55.tar.gz
bcm5719-llvm-6dd6969cee28a71ce6dad138a73ff703c5d43d55.zip
Change isSafeToLoadUnconditionally arguments order. Separated from http://reviews.llvm.org/D10920.
llvm-svn: 257894
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/Loads.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/Loads.cpp b/llvm/lib/Analysis/Loads.cpp
index 4b2fa3c6505..bad745a992d 100644
--- a/llvm/lib/Analysis/Loads.cpp
+++ b/llvm/lib/Analysis/Loads.cpp
@@ -62,8 +62,8 @@ static bool AreEquivalentAddressValues(const Value *A, const Value *B) {
///
/// This uses the pointee type to determine how many bytes need to be safe to
/// load from the pointer.
-bool llvm::isSafeToLoadUnconditionally(Value *V, Instruction *ScanFrom,
- unsigned Align) {
+bool llvm::isSafeToLoadUnconditionally(Value *V, unsigned Align,
+ Instruction *ScanFrom) {
const DataLayout &DL = ScanFrom->getModule()->getDataLayout();
// Zero alignment means that the load has the ABI alignment for the target
OpenPOWER on IntegriCloud