Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ctx_prof] CtxProfAnalysis #102084

Merged
merged 6 commits into from
Aug 7, 2024
Merged

[ctx_prof] CtxProfAnalysis #102084

merged 6 commits into from
Aug 7, 2024

Conversation

mtrofin
Copy link
Member

@mtrofin mtrofin commented Aug 6, 2024

This is an immutable analysis that loads and makes the contextual profile available to other passes. This patch just introduces the analysis and an analysis printer pass. Subsequent patches will introduce the APIs that IPO passes will call to modify the profile as result of their changes.

Issue #89287

This is an immutable analysis that loads and makes the contextual profile
available to other passes. This patch just introduces the analysis and
an analysis printer pass. Subsequent patches will introduce the APIs that
IPO passes will call to modify the profile as result of their changes.
@llvmbot
Copy link
Member

llvmbot commented Aug 6, 2024

@llvm/pr-subscribers-llvm-analysis

Author: Mircea Trofin (mtrofin)

Changes

This is an immutable analysis that loads and makes the contextual profile available to other passes. This patch just introduces the analysis and an analysis printer pass. Subsequent patches will introduce the APIs that IPO passes will call to modify the profile as result of their changes.


Full diff: https://github.com/llvm/llvm-project/pull/102084.diff

7 Files Affected:

  • (added) llvm/include/llvm/Analysis/CtxProfAnalysis.h (+53)
  • (modified) llvm/lib/Analysis/CMakeLists.txt (+1)
  • (added) llvm/lib/Analysis/CtxProfAnalysis.cpp (+91)
  • (modified) llvm/lib/Passes/PassBuilder.cpp (+3)
  • (modified) llvm/lib/Passes/PassBuilderPipelines.cpp (+1-1)
  • (modified) llvm/lib/Passes/PassRegistry.def (+2)
  • (added) llvm/test/Analysis/CtxProfAnalysis/load.ll (+56)
diff --git a/llvm/include/llvm/Analysis/CtxProfAnalysis.h b/llvm/include/llvm/Analysis/CtxProfAnalysis.h
new file mode 100644
index 0000000000000..dbdbc3a64a0ac
--- /dev/null
+++ b/llvm/include/llvm/Analysis/CtxProfAnalysis.h
@@ -0,0 +1,53 @@
+//===- CtxProfAnalysis.h - maintain contextual profile info   -*- C++ ---*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+#ifndef LLVM_ANALYSIS_CTXPROFANALYSIS_H
+#define LLVM_ANALYSIS_CTXPROFANALYSIS_H
+
+#include "llvm/IR/GlobalValue.h"
+#include "llvm/IR/PassManager.h"
+#include "llvm/ProfileData/PGOCtxProfReader.h"
+#include <map>
+
+namespace llvm {
+class CtxProfAnalysis : public AnalysisInfoMixin<CtxProfAnalysis> {
+  StringRef Profile;
+public:
+  static AnalysisKey Key;
+  explicit CtxProfAnalysis(StringRef Profile) : Profile(Profile) {};
+
+  class Result {
+    std::optional<PGOContextualProfile::CallTargetMapTy> Profiles;
+    public:
+      explicit Result(PGOContextualProfile::CallTargetMapTy &&Profiles)
+          : Profiles(std::move(Profiles)) {}
+      Result() = default;
+      Result(const Result&) = delete;
+      Result(Result &&) = default;
+
+      operator bool() const { return !!Profiles; }
+      const PGOContextualProfile::CallTargetMapTy &profiles() const {
+        return *Profiles;
+      }
+  };
+
+  Result run(Module &M, ModuleAnalysisManager &MAM);
+};
+
+class CtxProfAnalysisPrinterPass
+    : public PassInfoMixin<CtxProfAnalysisPrinterPass> {
+  raw_ostream &OS;
+
+public:
+  explicit CtxProfAnalysisPrinterPass(raw_ostream &OS) : OS(OS) {}
+
+  PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM);
+  static bool isRequired() { return true; }
+};
+} // namespace llvm
+#endif // LLVM_ANALYSIS_CTXPROFANALYSIS_H
diff --git a/llvm/lib/Analysis/CMakeLists.txt b/llvm/lib/Analysis/CMakeLists.txt
index 997bb7a0bb178..2cb3547ec4047 100644
--- a/llvm/lib/Analysis/CMakeLists.txt
+++ b/llvm/lib/Analysis/CMakeLists.txt
@@ -46,6 +46,7 @@ add_llvm_component_library(LLVMAnalysis
   CostModel.cpp
   CodeMetrics.cpp
   ConstantFolding.cpp
+  CtxProfAnalysis.cpp
   CycleAnalysis.cpp
   DDG.cpp
   DDGPrinter.cpp
diff --git a/llvm/lib/Analysis/CtxProfAnalysis.cpp b/llvm/lib/Analysis/CtxProfAnalysis.cpp
new file mode 100644
index 0000000000000..0ac67ac863ee2
--- /dev/null
+++ b/llvm/lib/Analysis/CtxProfAnalysis.cpp
@@ -0,0 +1,91 @@
+//===- CtxProfAnalysis.cpp - contextual profile analysis ------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// Implementation of the contextual profile analysis, which maintains contextual
+// profiling info through IPO passes.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Analysis/CtxProfAnalysis.h"
+#include "llvm/ADT/STLExtras.h"
+#include "llvm/IR/Analysis.h"
+#include "llvm/IR/Module.h"
+#include "llvm/IR/PassManager.h"
+#include "llvm/ProfileData/PGOCtxProfReader.h"
+#include "llvm/Support/MemoryBuffer.h"
+#include "llvm/Support/JSON.h"
+
+namespace llvm {
+namespace json {
+Value toJSON(const PGOContextualProfile &P) { 
+  Object Ret;
+  Ret["Guid"] = P.guid();
+  Ret["Counters"] = Array(P.counters());
+  auto AllCS =
+      ::llvm::map_range(P.callsites(), [](const auto &P) { return P.first; });
+  auto MaxIt = ::llvm::max_element(AllCS);
+  if (MaxIt != AllCS.end()) {
+    Array CSites;
+    // Iterate to, and including, the maximum index.
+    for (auto I = 0U; I <= *MaxIt; ++I) {
+      CSites.push_back(Array());
+      Array &Targets = *CSites.back().getAsArray();
+      if (P.hasCallsite(I))
+        for (const auto &[_, Ctx] : P.callsite(I))
+          Targets.push_back(toJSON(Ctx));
+    }
+    Ret["Callsites"] = std::move(CSites);
+  }
+  return Ret;
+}
+
+Value toJSON(const PGOContextualProfile::CallTargetMapTy &P) { 
+  Array Ret;
+  for (const auto &[_, Ctx] : P)
+    Ret.push_back(toJSON(Ctx));
+  return Ret;
+}
+} // namespace json
+} // namespace llvm
+
+using namespace llvm;
+#define DEBUG_TYPE "ctx_prof"
+
+AnalysisKey CtxProfAnalysis::Key;
+
+CtxProfAnalysis::Result CtxProfAnalysis::run(Module &M,
+                                             ModuleAnalysisManager &MAM) {
+  ErrorOr<std::unique_ptr<MemoryBuffer>> MB = MemoryBuffer::getFile(Profile);
+  if (auto EC = MB.getError()) {
+    M.getContext().emitError("could not open contextual profile file: " +
+                             EC.message());
+    return {};
+  }
+  PGOCtxProfileReader Reader(MB.get()->getBuffer());
+  auto MaybeCtx = Reader.loadContexts();
+  if (!MaybeCtx) {
+    M.getContext().emitError("contextual profile file is invalid: " +
+                             toString(MaybeCtx.takeError()));
+    return {};
+  }
+  return Result(std::move(*MaybeCtx));
+}
+
+PreservedAnalyses CtxProfAnalysisPrinterPass::run(Module &M,
+                                                  ModuleAnalysisManager &MAM) {
+  CtxProfAnalysis::Result &C = MAM.getResult<CtxProfAnalysis>(M);
+  if (!C) {
+    M.getContext().emitError("Invalid CtxProfAnalysis");
+    return PreservedAnalyses::all();
+  }
+  const auto JSONed = ::llvm::json::toJSON(C.profiles());
+  
+  OS << formatv("{0:2}", JSONed);
+  OS << "\n";
+  return PreservedAnalyses::all();
+}
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index 5dbb1e2f49871..bcc69d5ac3db6 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -28,6 +28,7 @@
 #include "llvm/Analysis/CallGraph.h"
 #include "llvm/Analysis/CallPrinter.h"
 #include "llvm/Analysis/CostModel.h"
+#include "llvm/Analysis/CtxProfAnalysis.h"
 #include "llvm/Analysis/CycleAnalysis.h"
 #include "llvm/Analysis/DDG.h"
 #include "llvm/Analysis/DDGPrinter.h"
@@ -330,6 +331,8 @@ cl::opt<bool> PrintPipelinePasses(
              "(best-effort only)."));
 } // namespace llvm
 
+extern cl::opt<std::string> UseCtxProfile;
+
 AnalysisKey NoOpModuleAnalysis::Key;
 AnalysisKey NoOpCGSCCAnalysis::Key;
 AnalysisKey NoOpFunctionAnalysis::Key;
diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index adebbb5eeba32..c175ee8980984 100644
--- a/llvm/lib/Passes/PassBuilderPipelines.cpp
+++ b/llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -304,7 +304,7 @@ static cl::opt<bool> UseLoopVersioningLICM(
     "enable-loop-versioning-licm", cl::init(false), cl::Hidden,
     cl::desc("Enable the experimental Loop Versioning LICM pass"));
 
-static cl::opt<std::string>
+cl::opt<std::string>
     UseCtxProfile("use-ctx-profile", cl::init(""), cl::Hidden,
                   cl::desc("Use the specified contextual profile file"));
 
diff --git a/llvm/lib/Passes/PassRegistry.def b/llvm/lib/Passes/PassRegistry.def
index 3b92823cd283b..2365ca4d3d88a 100644
--- a/llvm/lib/Passes/PassRegistry.def
+++ b/llvm/lib/Passes/PassRegistry.def
@@ -20,6 +20,7 @@
 #endif
 MODULE_ANALYSIS("callgraph", CallGraphAnalysis())
 MODULE_ANALYSIS("collector-metadata", CollectorMetadataAnalysis())
+MODULE_ANALYSIS("ctx-prof-analysis", CtxProfAnalysis(UseCtxProfile))
 MODULE_ANALYSIS("inline-advisor", InlineAdvisorAnalysis())
 MODULE_ANALYSIS("ir-similarity", IRSimilarityAnalysis())
 MODULE_ANALYSIS("lcg", LazyCallGraphAnalysis())
@@ -79,6 +80,7 @@ MODULE_PASS("insert-gcov-profiling", GCOVProfilerPass())
 MODULE_PASS("instrorderfile", InstrOrderFilePass())
 MODULE_PASS("instrprof", InstrProfilingLoweringPass())
 MODULE_PASS("ctx-instr-lower", PGOCtxProfLoweringPass())
+MODULE_PASS("print<ctx-prof-analysis>", CtxProfAnalysisPrinterPass(dbgs()))
 MODULE_PASS("invalidate<all>", InvalidateAllAnalysesPass())
 MODULE_PASS("iroutliner", IROutlinerPass())
 MODULE_PASS("jmc-instrumenter", JMCInstrumenterPass())
diff --git a/llvm/test/Analysis/CtxProfAnalysis/load.ll b/llvm/test/Analysis/CtxProfAnalysis/load.ll
new file mode 100644
index 0000000000000..fdf40d1b7f136
--- /dev/null
+++ b/llvm/test/Analysis/CtxProfAnalysis/load.ll
@@ -0,0 +1,56 @@
+; RUN: split-file %s %t
+; RUN: llvm-ctxprof-util fromJSON --input=%t/profile.json --output=%t/profile.ctxprofdata
+; RUN: not opt -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>' \
+; RUN:   %t/empty.ll -S 2>&1 | FileCheck %s --check-prefix=NO-FILE
+
+; RUN: not opt -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>' \
+; RUN:   -use-ctx-profile=does_not_exist.ctxprofdata %t/empty.ll -S 2>&1 | FileCheck %s --check-prefix=NO-FILE
+
+; RUN: opt -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>' \
+; RUN:   -use-ctx-profile=%t/profile.ctxprofdata %t/empty.ll -S 2> %t/output.json
+; RUN: diff %t/profile.json %t/output.json
+
+; NO-FILE: error: could not open contextual profile file
+;
+; This is the reference profile, laid out in the format the json formatter will
+; output it from opt.
+;--- profile.json
+[
+  {
+    "Callsites": [
+      [],
+      [
+        {
+          "Counters": [
+            4,
+            5
+          ],
+          "Guid": 2000
+        },
+        {
+          "Counters": [
+            6,
+            7,
+            8
+          ],
+          "Guid": 18446744073709551613
+        }
+      ]
+    ],
+    "Counters": [
+      1,
+      2,
+      3
+    ],
+    "Guid": 1000
+  },
+  {
+    "Counters": [
+      5,
+      9,
+      10
+    ],
+    "Guid": 18446744073709551612
+  }
+]
+;--- empty.ll

Copy link

github-actions bot commented Aug 6, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

llvm/include/llvm/Analysis/CtxProfAnalysis.h Outdated Show resolved Hide resolved
llvm/lib/Analysis/CtxProfAnalysis.cpp Outdated Show resolved Hide resolved
llvm/lib/Analysis/CtxProfAnalysis.cpp Outdated Show resolved Hide resolved
llvm/lib/Analysis/CtxProfAnalysis.cpp Outdated Show resolved Hide resolved
llvm/lib/Analysis/CtxProfAnalysis.cpp Show resolved Hide resolved
Copy link
Contributor

@snehasish snehasish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, modulo the comment about error reporting.

@mtrofin
Copy link
Member Author

mtrofin commented Aug 7, 2024

lgtm, modulo the comment about error reporting.

Was confused what you meant, until I realized I forgot to push my replies :)

@mtrofin mtrofin merged commit dbbf076 into llvm:main Aug 7, 2024
4 of 5 checks passed
@mtrofin mtrofin deleted the ctxprof_analysis branch August 7, 2024 18:39
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder lldb-aarch64-ubuntu running on linaro-lldb-aarch64-ubuntu while building llvm at step 6 "test".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/2798

Here is the relevant piece of the build log for the reference:

Step 6 (test) failure: build (failure)
...
UNSUPPORTED: lldb-api :: benchmarks/frame_variable/TestFrameVariableResponse.py (12 of 2000)
PASS: lldb-api :: api/command-return-object/TestSBCommandReturnObject.py (13 of 2000)
UNSUPPORTED: lldb-api :: benchmarks/libcxxlist/TestBenchmarkLibcxxList.py (14 of 2000)
UNSUPPORTED: lldb-api :: benchmarks/libcxxmap/TestBenchmarkLibcxxMap.py (15 of 2000)
UNSUPPORTED: lldb-api :: benchmarks/startup/TestStartupDelays.py (16 of 2000)
UNSUPPORTED: lldb-api :: benchmarks/stepping/TestSteppingSpeed.py (17 of 2000)
UNSUPPORTED: lldb-api :: benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py (18 of 2000)
UNSUPPORTED: lldb-api :: commands/add-dsym/uuid/TestAddDsymCommand.py (19 of 2000)
PASS: lldb-api :: commands/apropos/basic/TestApropos.py (20 of 2000)
UNRESOLVED: lldb-api :: api/multiple-debuggers/TestMultipleDebuggers.py (21 of 2000)
******************** TEST 'lldb-api :: api/multiple-debuggers/TestMultipleDebuggers.py' FAILED ********************
Script:
--
/usr/bin/python3.8 /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env ARCHIVER=/usr/local/bin/llvm-ar --env OBJCOPY=/usr/bin/llvm-objcopy --env LLVM_LIBS_DIR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./lib --env LLVM_INCLUDE_DIR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/include --env LLVM_TOOLS_DIR=/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin --arch aarch64 --build-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex --lldb-module-cache-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/lldb --compiler /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/clang --dsymutil /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin/dsymutil --llvm-tools-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./bin --lldb-obj-root /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/tools/lldb --lldb-libs-dir /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/./lib /home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/api/multiple-debuggers -p TestMultipleDebuggers.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 20.0.0git (https://github.com/llvm/llvm-project.git revision dbbf0762b6ee9611d80ba94fdbe3968b228b527a)
  clang revision dbbf0762b6ee9611d80ba94fdbe3968b228b527a
  llvm revision dbbf0762b6ee9611d80ba94fdbe3968b228b527a
Skipping the following test categories: ['libc++', 'dsym', 'gmodules', 'debugserver', 'objc']

--
Command Output (stderr):
--
FAIL: LLDB (/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/clang-aarch64) :: test_multiple_debuggers (TestMultipleDebuggers.TestMultipleSimultaneousDebuggers)
======================================================================
ERROR: test_multiple_debuggers (TestMultipleDebuggers.TestMultipleSimultaneousDebuggers)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 148, in wrapper
    return func(*args, **kwargs)
  File "/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 148, in wrapper
    return func(*args, **kwargs)
  File "/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/llvm-project/lldb/test/API/api/multiple-debuggers/TestMultipleDebuggers.py", line 35, in test_multiple_debuggers
    subprocess.check_call([self.driver_exe, self.inferior_exe])
  File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/api/multiple-debuggers/TestMultipleDebuggers.test_multiple_debuggers/multi-process-driver', '/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/lldb-test-build.noindex/api/multiple-debuggers/TestMultipleDebuggers.test_multiple_debuggers/testprog']' died with <Signals.SIGSEGV: 11>.
Config=aarch64-/home/tcwg-buildbot/worker/lldb-aarch64-ubuntu/build/bin/clang
----------------------------------------------------------------------
Ran 1 test in 1.647s

FAILED (errors=1)

--


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-win running on sie-win-worker while building llvm at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/2859

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
z:\b\llvm-clang-x86_64-sie-win\build\bin\llvm-ctxprof-util.exe fromJSON --input=Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\llvm-ctxprof-util.exe' fromJSON '--input=Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "Z:\\b\\llvm-clang-x86_64-sie-win\\build\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- Z:\b\llvm-clang-x86_64-sie-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-win running on as-builder-8 while building llvm at step 7 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/155/builds/1269

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\llvm-ctxprof-util.exe fromJSON --input=C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\buildbot\\as-builder-8\\llvm-nvptx64-nvidia-win\\build\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\buildbot\as-builder-8\llvm-nvptx64-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-win running on as-builder-8 while building llvm at step 7 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/54/builds/1184

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llvm-ctxprof-util.exe fromJSON --input=C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\filecheck.exe' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\buildbot\\as-builder-8\\llvm-nvptx-nvidia-win\\build\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder premerge-monolithic-windows running on premerge-windows-1 while building llvm at step 5 "clean-build-dir".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/35/builds/1686

Here is the relevant piece of the build log for the reference:

Step 5 (clean-build-dir) failure: Delete failed. (failure)
Step 8 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-ctxprof-util.exe fromJSON --input=C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\ws\buildbot\premerge-monolithic-windows\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\filecheck.exe' 'C:\ws\buildbot\premerge-monolithic-windows\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\ws\buildbot\premerge-monolithic-windows\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\ws\buildbot\premerge-monolithic-windows\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\ws\\buildbot\\premerge-monolithic-windows\\build\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\ws\buildbot\premerge-monolithic-windows\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-aarch64 running on as-builder-2 while building llvm at step 9 "test-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/193/builds/1665

Here is the relevant piece of the build log for the reference:

Step 9 (test-check-llvm) failure: Test just built components: check-llvm completed (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-ctxprof-util.exe fromJSON --input=C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe' 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\filecheck.exe' 'C:\buildbot\as-builder-2\x-aarch64\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\buildbot\as-builder-2\x-aarch64\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\buildbot\\as-builder-2\\x-aarch64\\build\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\buildbot\as-builder-2\x-aarch64\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder clang-arm64-windows-msvc running on linaro-armv8-windows-msvc-04 while building llvm at step 5 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/161/builds/1132

Here is the relevant piece of the build log for the reference:

Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-ctxprof-util.exe fromJSON --input=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\Users\\tcwg\\llvm-worker\\clang-arm64-windows-msvc\\stage1\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-win running on avx512-intel64-win while building llvm at step 6 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/81/builds/1302

Here is the relevant piece of the build log for the reference:

Step 6 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\llvm-ctxprof-util.exe fromJSON --input=D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'd:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\llvm-ctxprof-util.exe' fromJSON '--input=D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\filecheck.exe D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'd:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'd:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\filecheck.exe' 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\filecheck.exe D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'd:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'd:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\filecheck.exe' 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
d:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'd:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "D:\\buildbot\\llvm-worker\\clang-cmake-x86_64-avx512-win\\stage1\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- D:\buildbot\llvm-worker\clang-cmake-x86_64-avx512-win\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder lldb-aarch64-windows running on linaro-armv8-windows-msvc-05 while building llvm at step 6 "test".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/1375

Here is the relevant piece of the build log for the reference:

Step 6 (test) failure: build (failure)
...
PASS: lldb-api :: tools/lldb-dap/variables/children/TestDAP_variables_children.py (1146 of 1996)
UNSUPPORTED: lldb-api :: tools/lldb-server/TestGdbRemoteAuxvSupport.py (1147 of 1996)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteAttach.py (1148 of 1996)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteCompletion.py (1149 of 1996)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteExitCode.py (1150 of 1996)
UNSUPPORTED: lldb-api :: tools/lldb-server/TestGdbRemoteFork.py (1151 of 1996)
UNSUPPORTED: lldb-api :: tools/lldb-server/TestGdbRemoteForkNonStop.py (1152 of 1996)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteHostInfo.py (1153 of 1996)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteExpeditedRegisters.py (1154 of 1996)
PASS: lldb-api :: tools/lldb-server/TestGdbRemoteKill.py (1155 of 1996)
FAIL: lldb-api :: tools/lldb-server/TestGdbRemoteLaunch.py (1156 of 1996)
******************** TEST 'lldb-api :: tools/lldb-server/TestGdbRemoteLaunch.py' FAILED ********************
Script:
--
C:/Users/tcwg/scoop/apps/python/current/python.exe C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env OBJCOPY=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/llvm-objcopy.exe --env LLVM_LIBS_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./lib --env LLVM_INCLUDE_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/include --env LLVM_TOOLS_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin --arch aarch64 --build-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex --lldb-module-cache-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex/module-cache-lldb\lldb-api --clang-module-cache-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex/module-cache-clang\lldb-api --executable C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/lldb.exe --compiler C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/clang.exe --dsymutil C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/dsymutil.exe --llvm-tools-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin --lldb-obj-root C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/tools/lldb --lldb-libs-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./lib --skip-category=watchpoint C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\tools\lldb-server -p TestGdbRemoteLaunch.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 20.0.0git (https://github.com/llvm/llvm-project.git revision dbbf0762b6ee9611d80ba94fdbe3968b228b527a)
  clang revision dbbf0762b6ee9611d80ba94fdbe3968b228b527a
  llvm revision dbbf0762b6ee9611d80ba94fdbe3968b228b527a
Skipping the following test categories: ['watchpoint', 'libc++', 'libstdcxx', 'dwo', 'dsym', 'gmodules', 'debugserver', 'objc', 'fork', 'pexpect']


--
Command Output (stderr):
--
UNSUPPORTED: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_QEnvironmentHexEncoded_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_QEnvironmentHexEncoded_llgs) (skip on windows) 

UNSUPPORTED: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_QEnvironment_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_QEnvironment_llgs) (skip on windows) 

PASS: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_launch_failure_via_vRun_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_launch_failure_via_vRun_llgs)

UNSUPPORTED: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_launch_via_A_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_launch_via_A_llgs) (skip on windows) 

UNSUPPORTED: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_launch_via_vRun_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_launch_via_vRun_llgs) (skip on windows) 

FAIL: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_launch_via_vRun_no_args_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_launch_via_vRun_no_args_llgs)

======================================================================

FAIL: test_launch_via_vRun_no_args_llgs (TestGdbRemoteLaunch.GdbRemoteLaunchTestCase.test_launch_via_vRun_no_args_llgs)

----------------------------------------------------------------------

Traceback (most recent call last):


@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder clang-x64-windows-msvc running on windows-gcebot2 while building llvm at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/63/builds/928

Here is the relevant piece of the build log for the reference:

Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/clang-windows.py ...' (failure)
...
  Passed           : 37636 (99.10%)
  Expectedly Failed:    33 (0.09%)
[94/95] Running the LLVM regression tests
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using lld-link: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\lld-link.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld64.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld64.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using wasm-ld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\wasm-ld.exe
-- Testing: 54536 tests, 32 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.
FAIL: LLVM :: Analysis/CtxProfAnalysis/load.ll (52361 of 54536)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-ctxprof-util.exe fromJSON --input=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\b\\slave\\clang-x64-windows-msvc\\build\\stage1\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
Step 8 (stage 1 check) failure: stage 1 check (failure)
...
  Passed           : 37636 (99.10%)
  Expectedly Failed:    33 (0.09%)
[94/95] Running the LLVM regression tests
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using lld-link: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\lld-link.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using ld64.lld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\ld64.lld.exe
llvm-lit.py: C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\utils\lit\lit\llvm\config.py:508: note: using wasm-ld: c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\wasm-ld.exe
-- Testing: 54536 tests, 32 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.
FAIL: LLVM :: Analysis/CtxProfAnalysis/load.ll (52361 of 54536)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-ctxprof-util.exe fromJSON --input=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\filecheck.exe' 'C:\b\slave\clang-x64-windows-msvc\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\b\slave\clang-x64-windows-msvc\build\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\b\\slave\\clang-x64-windows-msvc\\build\\stage1\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\b\slave\clang-x64-windows-msvc\build\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 7, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-win-x-armv7l running on as-builder-1 while building llvm at step 9 "test-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/38/builds/21

Here is the relevant piece of the build log for the reference:

Step 9 (test-check-llvm) failure: Test just built components: check-llvm completed (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\buildbot\as-builder-1\x-armv7l\build\bin\llvm-ctxprof-util.exe fromJSON --input=C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\buildbot\as-builder-1\x-armv7l\build\bin\filecheck.exe C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\filecheck.exe' 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\buildbot\as-builder-1\x-armv7l\build\bin\filecheck.exe C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\filecheck.exe' 'C:\buildbot\as-builder-1\x-armv7l\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\buildbot\as-builder-1\x-armv7l\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\buildbot\\as-builder-1\\x-armv7l\\build\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\buildbot\as-builder-1\x-armv7l\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-expensive-checks-win running on as-worker-93 while building llvm at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/14/builds/596

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\llvm-ctxprof-util.exe fromJSON --input=C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\filecheck.exe C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\filecheck.exe' 'C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\filecheck.exe C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\filecheck.exe' 'C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\a\\llvm-clang-x86_64-expensive-checks-win\\build\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\a\llvm-clang-x86_64-expensive-checks-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 8, 2024

LLVM Buildbot has detected a new failure on builder lld-x86_64-win running on as-worker-93 while building llvm at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/380

Here is the relevant piece of the build log for the reference:

Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\a\lld-x86_64-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\a\lld-x86_64-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\a\lld-x86_64-win\build\bin\llvm-ctxprof-util.exe fromJSON --input=C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\a\lld-x86_64-win\build\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\a\lld-x86_64-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\a\lld-x86_64-win\build\bin\filecheck.exe C:\a\lld-x86_64-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\a\lld-x86_64-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\a\lld-x86_64-win\build\bin\filecheck.exe' 'C:\a\lld-x86_64-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\a\lld-x86_64-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\a\lld-x86_64-win\build\bin\filecheck.exe C:\a\lld-x86_64-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\a\lld-x86_64-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\a\lld-x86_64-win\build\bin\filecheck.exe' 'C:\a\lld-x86_64-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\a\lld-x86_64-win\build\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\a\lld-x86_64-win\build\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\a\\lld-x86_64-win\\build\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\a\lld-x86_64-win\build\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

mtrofin added a commit to mtrofin/llvm-project that referenced this pull request Aug 12, 2024
Continuing from llvm#102084, which introduced the analysis, we now populate
it with info about functions contained in the module.

When we will update the profile due to e.g. inlined callsites, we'll
ingest the callee's counters and callsites to the caller. We'll move
those to the caller's respective index space (counter and callers), so
we need to know and maintain where those currently end.

We also don't need to keep profiles not pertinent to this module.

This patch also introduces an arguably much simpler way to track the GUID
of a function from the frontend compilation, through ThinLTO, and into
the post-thinlink compilation step, which doesn't rely on keeping names
around. A separate RFC and patches will discuss extending this to the
current PGO (instrumented and sampled) and other consumers as an
infrastructural component.
mtrofin added a commit to mtrofin/llvm-project that referenced this pull request Aug 12, 2024
Continuing from llvm#102084, which introduced the analysis, we now populate
it with info about functions contained in the module.

When we will update the profile due to e.g. inlined callsites, we'll
ingest the callee's counters and callsites to the caller. We'll move
those to the caller's respective index space (counter and callers), so
we need to know and maintain where those currently end.

We also don't need to keep profiles not pertinent to this module.

This patch also introduces an arguably much simpler way to track the GUID
of a function from the frontend compilation, through ThinLTO, and into
the post-thinlink compilation step, which doesn't rely on keeping names
around. A separate RFC and patches will discuss extending this to the
current PGO (instrumented and sampled) and other consumers as an
infrastructural component.
mtrofin added a commit that referenced this pull request Aug 15, 2024
Continuing from #102084, which introduced the analysis, we now populate
it with info about functions contained in the module.

When we will update the profile due to e.g. inlined callsites, we'll
ingest the callee's counters and callsites to the caller. We'll move
those to the caller's respective index space (counter and callers), so
we need to know and maintain where those currently end.

We also don't need to keep profiles not pertinent to this module.

This patch also introduces an arguably much simpler way to track the
GUID of a function from the frontend compilation, through ThinLTO, and
into the post-thinlink compilation step, which doesn't rely on keeping
names around. A separate RFC and patches will discuss extending this to
the current PGO (instrumented and sampled) and other consumers as an
infrastructural component.
bwendling pushed a commit to bwendling/llvm-project that referenced this pull request Aug 15, 2024
Continuing from llvm#102084, which introduced the analysis, we now populate
it with info about functions contained in the module.

When we will update the profile due to e.g. inlined callsites, we'll
ingest the callee's counters and callsites to the caller. We'll move
those to the caller's respective index space (counter and callers), so
we need to know and maintain where those currently end.

We also don't need to keep profiles not pertinent to this module.

This patch also introduces an arguably much simpler way to track the
GUID of a function from the frontend compilation, through ThinLTO, and
into the post-thinlink compilation step, which doesn't rely on keeping
names around. A separate RFC and patches will discuss extending this to
the current PGO (instrumented and sampled) and other consumers as an
infrastructural component.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Aug 15, 2024

LLVM Buildbot has detected a new failure on builder clang-arm64-windows-msvc-2stage running on linaro-armv8-windows-msvc-02 while building llvm at step 5 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/124/builds/125

Here is the relevant piece of the build log for the reference:

Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\llvm-ctxprof-util.exe fromJSON --input=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\Users\\tcwg\\llvm-worker\\clang-arm64-windows-msvc-2stage\\stage1\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage1\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...
Step 11 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
split-file C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp
# executed command: split-file 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp'
# RUN: at line 2
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\llvm-ctxprof-util.exe fromJSON --input=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json --output=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\llvm-ctxprof-util.exe' fromJSON '--input=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' '--output=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata'
# RUN: at line 3
not c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 6
not c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=does_not_exist.ctxprofdata C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2>&1 | c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\filecheck.exe C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll --check-prefix=NO-FILE
# executed command: not 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' -use-ctx-profile=does_not_exist.ctxprofdata 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\filecheck.exe' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\llvm\llvm\test\Analysis\CtxProfAnalysis\load.ll' --check-prefix=NO-FILE
# RUN: at line 9
c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\opt.exe -passes='require<ctx-prof-analysis>,print<ctx-prof-analysis>'    -use-ctx-profile=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll -S 2> C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: 'c:\users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\bin\opt.exe' '-passes=require<ctx-prof-analysis>,print<ctx-prof-analysis>' '-use-ctx-profile=C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.ctxprofdata' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll' -S
# .---command stdout------------
# | ; ModuleID = 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/empty.ll'
# | source_filename = "C:\\Users\\tcwg\\llvm-worker\\clang-arm64-windows-msvc-2stage\\stage2\\test\\Analysis\\CtxProfAnalysis\\Output\\load.ll.tmp/empty.ll"
# `-----------------------------
# RUN: at line 11
diff C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# executed command: diff 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json' 'C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json'
# .---command stdout------------
# | *** C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/profile.json
# | --- C:\Users\tcwg\llvm-worker\clang-arm64-windows-msvc-2stage\stage2\test\Analysis\CtxProfAnalysis\Output\load.ll.tmp/output.json
# | ***************
# | *** 1,38 ****
# | ! [
# | !   {
# | !     "Callsites": [
# | !       [],
# | !       [
# | !         {
# | !           "Counters": [
# | !             4,
# | !             5
# | !           ],
# | !           "Guid": 2000
# | !         },
# | !         {
# | !           "Counters": [
# | !             6,
# | !             7,
...

kstoimenov pushed a commit to kstoimenov/llvm-project that referenced this pull request Aug 15, 2024
This is an immutable analysis that loads and makes the contextual profile available to other passes. This patch introduces the analysis and an analysis printer pass. Subsequent patches will introduce the APIs that IPO passes will call to modify the profile as result of their changes.
kstoimenov pushed a commit to kstoimenov/llvm-project that referenced this pull request Aug 15, 2024
searlmc1 pushed a commit to ROCm/llvm-project that referenced this pull request Aug 22, 2024
Revert "[ctx_prof] CtxProfAnalysis (llvm#102084)"

Change-Id: Ibd6d6f1811e713df4b70d9f68eb027498568ea21
searlmc1 pushed a commit to ROCm/llvm-project that referenced this pull request Sep 6, 2024
This is an immutable analysis that loads and makes the contextual profile available to other passes. This patch introduces the analysis and an analysis printer pass. Subsequent patches will introduce the APIs that IPO passes will call to modify the profile as result of their changes.

Change-Id: I1a1047a73074f143a2df79afdbc06b075473feb8
searlmc1 pushed a commit to ROCm/llvm-project that referenced this pull request Sep 6, 2024
Continuing from llvm#102084, which introduced the analysis, we now populate
it with info about functions contained in the module.

When we will update the profile due to e.g. inlined callsites, we'll
ingest the callee's counters and callsites to the caller. We'll move
those to the caller's respective index space (counter and callers), so
we need to know and maintain where those currently end.

We also don't need to keep profiles not pertinent to this module.

This patch also introduces an arguably much simpler way to track the
GUID of a function from the frontend compilation, through ThinLTO, and
into the post-thinlink compilation step, which doesn't rely on keeping
names around. A separate RFC and patches will discuss extending this to
the current PGO (instrumented and sampled) and other consumers as an
infrastructural component.

Change-Id: I587eb6837788741abfee47f9d8370addfda46265
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants