summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJiangning Liu <jiangning.liu@arm.com>2014-04-18 07:57:54 +0000
committerJiangning Liu <jiangning.liu@arm.com>2014-04-18 07:57:54 +0000
commitad874fca285d67b997ef63e882169f12dbd8afe3 (patch)
tree96441cc51176078d8eea338633b673b9a7bc67d6 /llvm/lib
parent209a7b92b5228b706b99322370381a76d32d8309 (diff)
downloadbcm5719-llvm-ad874fca285d67b997ef63e882169f12dbd8afe3.tar.gz
bcm5719-llvm-ad874fca285d67b997ef63e882169f12dbd8afe3.zip
This commit allows vectorized loops to be unrolled by a factor of 2 for AArch64.
A new test case is also added for ARM64. Patched by Z.Zheng llvm-svn: 206563
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index e2a16478741..b2fb41ab5a2 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -92,6 +92,7 @@ public:
return 64;
}
+ unsigned getMaximumUnrollFactor() const override { return 2; }
/// @}
};
OpenPOWER on IntegriCloud