[llvm] [GlobalISel] Move DemandedElt's APInt size assert after isValid() check (PR #115979)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 19:20:24 PST 2024


================
@@ -147,6 +147,15 @@ void GISelKnownBits::computeKnownBitsImpl(Register R, KnownBits &Known,
   unsigned Opcode = MI.getOpcode();
   LLT DstTy = MRI.getType(R);
 
+  // Handle the case where this is called on a register that does not have a
+  // type constraint (i.e. it has a register class constraint instead). This is
----------------
arsenm wrote:

These are not mutually exclusive. A register class constraint does not imply there is no LLT 

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


More information about the llvm-commits mailing list