[llvm-branch-commits] [llvm] fe0527e - [Hexagon] Temporarily disable vector realignment for non-HVX vectors
Krzysztof Parzyszek via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Dec 15 17:08:34 PST 2020
Author: Krzysztof Parzyszek
Date: 2020-12-15T19:03:07-06:00
New Revision: fe0527e1c7e4a27da9ac0dfd25a6e6d4d6ca6db6
URL: https://github.com/llvm/llvm-project/commit/fe0527e1c7e4a27da9ac0dfd25a6e6d4d6ca6db6
DIFF: https://github.com/llvm/llvm-project/commit/fe0527e1c7e4a27da9ac0dfd25a6e6d4d6ca6db6.diff
LOG: [Hexagon] Temporarily disable vector realignment for non-HVX vectors
Added:
Modified:
llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
index aa8236d6d54f..4fbe7e4b3931 100644
--- a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
@@ -674,6 +674,10 @@ auto AlignVectors::move(const MoveGroup &Move) const -> bool {
}
auto AlignVectors::realignGroup(const MoveGroup &Move) const -> bool {
+ // TODO: Needs support for masked loads/stores of "scalar" vectors.
+ if (!Move.IsHvx)
+ return false;
+
// Return the element with the maximum alignment from Range,
// where GetValue obtains the value to compare from an element.
auto getMaxOf = [](auto Range, auto GetValue) {
More information about the llvm-branch-commits
mailing list