[llvm] 721b3d0 - [GlobalISel] GISelKnownBits: forward unused depth parameter

Tobias Stadler via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 15:39:42 PDT 2023


Author: Tobias Stadler
Date: 2023-09-13T00:35:26+02:00
New Revision: 721b3d0a0220ee63f31ed1a589ecdaa14534f5d5

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

LOG: [GlobalISel] GISelKnownBits: forward unused depth parameter

Actually pass along the depth parameter of getKnownBits to computeKnownBitsImpl.

Reviewed By: aemerson

Differential Revision: https://reviews.llvm.org/D159321

Added: 
    

Modified: 
    llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp b/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
index 2c726aca3cdea54..bbe82e201366d59 100644
--- a/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
@@ -74,7 +74,7 @@ KnownBits GISelKnownBits::getKnownBits(Register R, const APInt &DemandedElts,
   assert(ComputeKnownBitsCache.empty() && "Cache should have been cleared");
 
   KnownBits Known;
-  computeKnownBitsImpl(R, Known, DemandedElts);
+  computeKnownBitsImpl(R, Known, DemandedElts, Depth);
   ComputeKnownBitsCache.clear();
   return Known;
 }


        


More information about the llvm-commits mailing list