[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:54:25 PDT 2026


================
@@ -64,8 +66,9 @@ class LLVM_ABI GISelValueTracking : public GISelChangeObserver {
 
   const DataLayout &getDataLayout() const { return DL; }
 
-  void computeKnownBitsImpl(Register R, KnownBits &Known,
-                            const APInt &DemandedElts, unsigned Depth = 0);
+  virtual void computeKnownBitsImpl(Register R, KnownBits &Known,
----------------
arsenm wrote:

If we're going to do this, we should have one iterative implementation. No retention of the old recursion 

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


More information about the llvm-commits mailing list