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

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 09:43:20 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
----------------
dsandersllvm wrote:

https://github.com/llvm/llvm-project/pull/116083. I can merge that PR into this one if you want to do both at the same time

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


More information about the llvm-commits mailing list