[llvm] 99cafe0 - [Hexagon] Return 1 instead of 0 from getMaxInterleaveFactor
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 9 07:46:31 PDT 2020
Author: Krzysztof Parzyszek
Date: 2020-10-09T09:46:18-05:00
New Revision: 99cafe009477970e2f14415d1b48ceed954dc84b
URL: https://github.com/llvm/llvm-project/commit/99cafe009477970e2f14415d1b48ceed954dc84b
DIFF: https://github.com/llvm/llvm-project/commit/99cafe009477970e2f14415d1b48ceed954dc84b.diff
LOG: [Hexagon] Return 1 instead of 0 from getMaxInterleaveFactor
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp b/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
index a8ac00fa87de..76e8220b172a 100644
--- a/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
@@ -108,7 +108,7 @@ unsigned HexagonTTIImpl::getNumberOfRegisters(bool Vector) const {
}
unsigned HexagonTTIImpl::getMaxInterleaveFactor(unsigned VF) {
- return useHVX() ? 2 : 0;
+ return useHVX() ? 2 : 1;
}
unsigned HexagonTTIImpl::getRegisterBitWidth(bool Vector) const {
More information about the llvm-commits
mailing list