[llvm] [GlobalISel] Add iterative known-bits evaluation to GISelValueTracking (PR #221755)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 06:56:09 PDT 2026


================
@@ -38,6 +38,13 @@ class LLVM_ABI GISelValueTracking : public GISelChangeObserver {
   const DataLayout &DL;
   unsigned MaxDepth;
 
+  // The triple (Register, DemandedElts, Depth) used as worklist and cache key.
+  using WorkItem = std::tuple<Register, APInt, unsigned>;
+  // Items pending evaluation during the active top-level query.
+  SmallVector<WorkItem> Stack;
----------------
arsenm wrote:

make the size the max stack depth 

https://github.com/llvm/llvm-project/pull/221755


More information about the llvm-commits mailing list