[clang] [compiler-rt] [llvm] [PGO][AMDGPU] Add offload profiling with uniformity-aware optimization (PR #177665)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 4 03:33:04 PST 2026


================
@@ -2251,7 +2252,12 @@ void DotCfgChangeReporter::handleFunctionCompare(
   // Use the before entry block if the after entry block was removed.
   if (EntryBlockName == "")
     EntryBlockName = Before.getEntryBlockName();
-  assert(EntryBlockName != "" && "Expected to find entry block");
+
+  if (EntryBlockName.empty()) {
+    errs() << "Warning: could not find entry block for function " << Name
----------------
arsenm wrote:

Passes should not spam stderr 

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


More information about the cfe-commits mailing list