[llvm] [TableGen][SubtargetEmitter] Early exit from loop in FindWriteResources (PR #92202)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 19:06:18 PDT 2024


================
@@ -910,6 +910,7 @@ SubtargetEmitter::FindWriteResources(const CodeGenSchedRW &SchedWrite,
                                           ProcModel.ModelName);
       }
       ResDef = WR;
+      break;
----------------
topperc wrote:

Doesn't this make the PrintFatalError dead code?

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


More information about the llvm-commits mailing list