summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-02-01 14:31:23 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-02-01 14:31:23 +0000
commitab5cb36c401cd31c7e3cb57d7affc0efff3c61fb (patch)
tree3d08d8b8d921c4a58f39196c5b537900ea1aa194 /llvm/lib/Target/AArch64
parentc956ab66037e3b0e6b3a039728348de1db1c4ad6 (diff)
downloadbcm5719-llvm-ab5cb36c401cd31c7e3cb57d7affc0efff3c61fb.tar.gz
bcm5719-llvm-ab5cb36c401cd31c7e3cb57d7affc0efff3c61fb.zip
[multiversion] Remove the function parameter from the unrolling
preferences interface on TTI now that all of TTI is per-function. llvm-svn: 227741
Diffstat (limited to 'llvm/lib/Target/AArch64')
-rw-r--r--llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp2
-rw-r--r--llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index eab080bb24c..0646d855ab7 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -424,7 +424,7 @@ unsigned AArch64TTIImpl::getMaxInterleaveFactor() {
return 2;
}
-void AArch64TTIImpl::getUnrollingPreferences(const Function *F, Loop *L,
+void AArch64TTIImpl::getUnrollingPreferences(Loop *L,
TTI::UnrollingPreferences &UP) {
// Disable partial & runtime unrolling on -Os.
UP.PartialOptSizeThreshold = 0;
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
index fffeb981b53..dd3fd1f5ab7 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
@@ -132,8 +132,7 @@ public:
unsigned getCostOfKeepingLiveOverCall(ArrayRef<Type *> Tys);
- void getUnrollingPreferences(const Function *F, Loop *L,
- TTI::UnrollingPreferences &UP);
+ void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP);
Value *getOrCreateResultFromMemIntrinsic(IntrinsicInst *Inst,
Type *ExpectedType);
OpenPOWER on IntegriCloud