aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopVersioning.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-04-30 20:15:30 +0100
committerFlorian Hahn <flo@fhahn.com>2020-04-30 22:17:12 +0100
commit19ab53f1e2c3e459f2844b76b08a22806423798c (patch)
treee470e34f3424491addd7841ef0ba60fd2bdd5477 /llvm/lib/Transforms/Utils/LoopVersioning.cpp
parentb74c6d2c9d8e57db96742094cc4daf98a258b412 (diff)
downloadllvm-19ab53f1e2c3e459f2844b76b08a22806423798c.zip
llvm-19ab53f1e2c3e459f2844b76b08a22806423798c.tar.gz
llvm-19ab53f1e2c3e459f2844b76b08a22806423798c.tar.bz2
[LoopVersioning] Update setAliasChecks to take ArrayRef argument (NFC).
This cleanup was suggested as part of D78458.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopVersioning.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopVersioning.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopVersioning.cpp b/llvm/lib/Transforms/Utils/LoopVersioning.cpp
index 2ed54d5..ce0fb62 100644
--- a/llvm/lib/Transforms/Utils/LoopVersioning.cpp
+++ b/llvm/lib/Transforms/Utils/LoopVersioning.cpp
@@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Utils/LoopVersioning.h"
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/Analysis/LoopAccessAnalysis.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/ScalarEvolutionExpander.h"
@@ -44,9 +45,8 @@ LoopVersioning::LoopVersioning(const LoopAccessInfo &LAI, Loop *L, LoopInfo *LI,
}
}
-void LoopVersioning::setAliasChecks(
- SmallVector<RuntimePointerCheck, 4> Checks) {
- AliasChecks = std::move(Checks);
+void LoopVersioning::setAliasChecks(ArrayRef<RuntimePointerCheck> Checks) {
+ AliasChecks = {Checks.begin(), Checks.end()};
}
void LoopVersioning::setSCEVChecks(SCEVUnionPredicate Check) {