[llvm] [AMDGPU] Detect kills in register sets when trying to form V_CMPX instructions. (PR #68293)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 04:57:22 PDT 2023


================
@@ -599,6 +620,11 @@ bool SIOptimizeExecMasking::optimizeVCMPSaveExecSequence(
   if (Src1->isReg())
     MRI->clearKillFlags(Src1->getReg());
 
+  for (MachineOperand *MO : KillFlagCandidates) {
+    if (MO)
----------------
jayfoad wrote:

How could MO ever be nullptr here?

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


More information about the llvm-commits mailing list