[llvm] [GlobalISel] Cache split LLTs in IRTranslator (PR #195267)
Cullen Rhodes via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 07:44:25 PDT 2026
================
@@ -133,13 +144,23 @@ class IRTranslator : public MachineFunctionPass {
TypeToOffsets[V.getType()] = OffsetList;
return OffsetList;
}
+
+ SplitTypeListT *insertSplitTys(const Value &V) {
+ assert(!TypeToSplitTys.contains(V.getType()) && "Type already exists");
+
+ auto *SplitTyList = new (SplitTyAlloc.Allocate()) SplitTypeListT();
+ TypeToSplitTys[V.getType()] = SplitTyList;
----------------
c-rhodes wrote:
thanks. also updated insertOffsets since it's based on that and doing the same.
https://github.com/llvm/llvm-project/pull/195267
More information about the llvm-commits
mailing list