[llvm] [GlobalISel] Correct comment about type vs register class (PR #116083)

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 11:19:41 PST 2024


================
@@ -147,6 +147,16 @@ 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's a target instruction with a register class
+  // constraint instead). This is unlikely to occur except by looking through
----------------
dsandersllvm wrote:

I agree, it might be worth making it a requirement for all targets

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


More information about the llvm-commits mailing list