[llvm] [GlobalISel] Fold instructions with fully-known bits to a constant. (PR #224254)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 03:32:51 PDT 2026


================
@@ -3363,6 +3363,35 @@ bool CombinerHelper::matchRedundantAnd(MachineInstr &MI,
   return false;
 }
 
+bool CombinerHelper::matchKnownBitsToConstant(MachineInstr &MI,
+                                              APInt &MatchInfo) const {
+  if (!VT)
----------------
arsenm wrote:

We really ought to be able to mark a pattern as requiring ValueTracking 

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


More information about the llvm-commits mailing list