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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 09:33:51 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:

Might as well fix the comment while you're moving it 

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


More information about the llvm-commits mailing list