[llvm] c4a8f9a - [Hexagon] Fix vector concatenation

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 29 10:47:11 PDT 2022


Author: Krzysztof Parzyszek
Date: 2022-10-29T10:46:24-07:00
New Revision: c4a8f9abac2b2a6925ab99384f10ae3f5c2fd85f

URL: https://github.com/llvm/llvm-project/commit/c4a8f9abac2b2a6925ab99384f10ae3f5c2fd85f
DIFF: https://github.com/llvm/llvm-project/commit/c4a8f9abac2b2a6925ab99384f10ae3f5c2fd85f.diff

LOG: [Hexagon] Fix vector concatenation

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 078c4f48273c2..1dc7bfbfde41c 100644
--- a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
@@ -1639,9 +1639,9 @@ auto HexagonVectorCombine::concat(IRBuilderBase &Builder,
   // Since there may have been some undefs appended to make shuffle operands
   // have the same type, perform the last shuffle to only pick the original
   // elements.
-  SMask.resize(Vecs.size() * getSizeOf(Vecs.front()->getType()));
+  SMask.resize(Vecs.size() * length(Vecs.front()->getType()));
   std::iota(SMask.begin(), SMask.end(), 0);
-  Value *Total = Work[OtherW].front();
+  Value *Total = Work[ThisW].front();
   return Builder.CreateShuffleVector(Total, SMask);
 }
 


        


More information about the llvm-commits mailing list