[Hexagon] Temporarily disable vector realignment for non-HVX vectors
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Wed, 16 Dec 2020 01:03:07 +0000 (19:03 -0600)
committerKrzysztof Parzyszek <kparzysz@quicinc.com>
Wed, 16 Dec 2020 01:03:07 +0000 (19:03 -0600)
llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp

index aa8236d..4fbe7e4 100644 (file)
@@ -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) {