[llvm] [SandboxVec][BottomUpVec] Implement pack of scalars (PR #115549)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 14:39:42 PST 2024
================
@@ -164,7 +164,39 @@ void BottomUpVec::tryEraseDeadInstrs() {
DeadInstrCandidates.clear();
}
-Value *BottomUpVec::vectorizeRec(ArrayRef<Value *> Bndl) {
+Value *BottomUpVec::createPack(ArrayRef<Value *> ToPack) {
+ BasicBlock::iterator WhereIt = getInsertPointAfterInstrs(ToPack);
+
+ Type *ScalarTy = VecUtils::getCommonScalarType(ToPack);
+ unsigned Lanes = VecUtils::getNumLanes(ToPack);
----------------
vporpo wrote:
They won't necessarily have the same type. You can have a bundle like: `{i32, <2 x i32>, i32}`.
https://github.com/llvm/llvm-project/pull/115549
More information about the llvm-commits
mailing list