[llvm] [ctx_prof] Flattened profile lowering pass (PR #107329)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 7 05:35:59 PDT 2024


llvm-ci wrote:

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/1341

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Analysis/CtxProfAnalysis/flatten-always-removes-instrumentation.ll' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\opt.exe -passes=ctx-prof-flatten C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\flatten-always-removes-instrumentation.ll -S | 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\flatten-always-removes-instrumentation.ll
# executed command: 'c:\a\llvm-clang-x86_64-expensive-checks-win\build\bin\opt.exe' -passes=ctx-prof-flatten 'C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\flatten-always-removes-instrumentation.ll' -S
# .---command stderr------------
# | LLVM ERROR: Function @foo changed by PGOCtxProfFlatteningPass without invalidating analyses
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
# | Stack dump:
# | 0.	Program arguments: c:\\a\\llvm-clang-x86_64-expensive-checks-win\\build\\bin\\opt.exe -passes=ctx-prof-flatten C:\\a\\llvm-clang-x86_64-expensive-checks-win\\llvm-project\\llvm\\test\\Analysis\\CtxProfAnalysis\\flatten-always-removes-instrumentation.ll -S
# | 1.	Running pass "ctx-prof-flatten" on module "C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\test\Analysis\CtxProfAnalysis\flatten-always-removes-instrumentation.ll"
# | Exception Code: 0x80000003
# |  #0 0x00007ff74d23addc HandleAbort C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\lib\Support\Windows\Signals.inc:429:0
# |  #1 0x00007ffddb7690ed (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0xa90ed)
# |  #2 0x00007ffddb76ae49 (C:\WINDOWS\SYSTEM32\ucrtbased.dll+0xaae49)
# |  #3 0x00007ff74d06140f llvm::report_fatal_error(class llvm::Twine const &, bool) C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\lib\Support\ErrorHandling.cpp:124:0
# |  #4 0x00007ff74d86682d `llvm::PreservedCFGCheckerInstrumentation::registerCallbacks'::`2'::<lambda_3>::operator() C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\lib\Passes\StandardInstrumentations.cpp:1415:0
# |  #5 0x00007ff74d859902 llvm::detail::UniqueFunctionBase<void,llvm::StringRef,llvm::Any,llvm::PreservedAnalyses const &>::CallImpl<`llvm::PreservedCFGCheckerInstrumentation::registerCallbacks'::`2'::<lambda_3> > C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\include\llvm\ADT\FunctionExtras.h:222:0
# |  #6 0x00007ff74ada3c8b llvm::unique_function<(class llvm::StringRef, class llvm::Any, class llvm::PreservedAnalyses const &)>::operator()(class llvm::StringRef, class llvm::Any, class llvm::PreservedAnalyses const &) C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\include\llvm\ADT\FunctionExtras.h:387:0
# |  #7 0x00007ff74c1c9a54 llvm::PassInstrumentation::runAfterPass<class llvm::Module, struct llvm::detail::PassConcept<class llvm::Module, class llvm::AnalysisManager<class llvm::Module>>>(struct llvm::detail::PassConcept<class llvm::Module, class llvm::AnalysisManager<class llvm::Module>> const &, class llvm::Module const &, class llvm::PreservedAnalyses const &) const C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\include\llvm\IR\PassInstrumentation.h:265:0
# |  #8 0x00007ff74c1da22e llvm::PassManager<class llvm::Module, class llvm::AnalysisManager<class llvm::Module>>::run(class llvm::Module &, class llvm::AnalysisManager<class llvm::Module> &) C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\include\llvm\IR\PassManagerImpl.h:93:0
# |  #9 0x00007ff746def5fb llvm::runPassPipeline(class llvm::StringRef, class llvm::Module &, class llvm::TargetMachine *, class llvm::TargetLibraryInfoImpl *, class llvm::ToolOutputFile *, class llvm::ToolOutputFile *, class llvm::ToolOutputFile *, class llvm::StringRef, class llvm::ArrayRef<class llvm::PassPlugin>, class llvm::ArrayRef<class std::function<(class llvm::PassBuilder &)>>, enum llvm::opt_tool::OutputKind, enum llvm::opt_tool::VerifierKind, bool, bool, bool, bool, bool, bool, bool) C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\tools\opt\NewPMDriver.cpp:541:0
# | #10 0x00007ff746daf2de optMain C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\tools\opt\optdriver.cpp:738:0
# | #11 0x00007ff746dab3b6 main C:\a\llvm-clang-x86_64-expensive-checks-win\llvm-project\llvm\tools\opt\opt.cpp:25:0
# | #12 0x00007ff746e26dd9 invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:79:0
# | #13 0x00007ff746e26c82 __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0
# | #14 0x00007ff746e26b3e __scrt_common_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331:0
# | #15 0x00007ff746e26e6e mainCRTStartup D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0
# | #16 0x00007ffdf2347374 (C:\WINDOWS\System32\KERNEL32.DLL+0x17374)
# | #17 0x00007ffdf275cc91 (C:\WINDOWS\SYSTEM32\ntdll.dll+0x4cc91)
# `-----------------------------
# error: command failed with exit status: 0x80000003
# 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\flatten-always-removes-instrumentation.ll'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  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\flatten-always-removes-instrumentation.ll
# `-----------------------------
# error: command failed with exit status: 2

--

********************


```

</details>

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


More information about the llvm-commits mailing list