Skip to content

Conversation

paschalis-mpeis
Copy link
Member

@paschalis-mpeis paschalis-mpeis commented Sep 17, 2025

This reverts commit 7fca1f8.

PR #55957 breaks the BOLT buildbot bolt-aarch64-ubuntu-clang:
https://lab.llvm.org/staging/#/builders/126

Example build:
https://lab.llvm.org/staging/#/builders/126/builds/2628

ld.lld: /home/buildbot/workspace/bolt-aarch64-ubuntu-clang/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:10194: bool llvm::LoopVectorizePass::processLoop(llvm::Loop*): Assertion `!verifyFunction(*F, &dbgs())' failed.

@paschalis-mpeis paschalis-mpeis marked this pull request as ready for review September 17, 2025 14:25
@llvmbot llvmbot added the clang Clang issues not falling into any other category label Sep 17, 2025
@llvmbot
Copy link
Member

llvmbot commented Sep 17, 2025

@llvm/pr-subscribers-clang

Author: Paschalis Mpeis (paschalis-mpeis)

Changes

This reverts commit 7fca1f8.


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

1 Files Affected:

  • (modified) clang/cmake/caches/PGO.cmake (+1-1)
diff --git a/clang/cmake/caches/PGO.cmake b/clang/cmake/caches/PGO.cmake
index d6471160037c1..15bc755d110d1 100644
--- a/clang/cmake/caches/PGO.cmake
+++ b/clang/cmake/caches/PGO.cmake
@@ -5,7 +5,7 @@ set(LLVM_ENABLE_PROJECTS "clang;lld" CACHE STRING "")
 set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "")
 
 set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "")
-set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED IR CACHE BOOL "")
+set(BOOTSTRAP_LLVM_BUILD_INSTRUMENTED ON CACHE BOOL "")
 set(CLANG_BOOTSTRAP_TARGETS
   generate-profdata
   stage2

Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

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

What exactly is the motivation for this?

@paschalis-mpeis
Copy link
Member Author

paschalis-mpeis commented Sep 17, 2025

Hey @boomanaiden154,

Given that it breaks the stage2-clang-bolt cache, I suggest reverting this now, and it can be relanded later, once a fix is ready.

On our end, once this is done it will let us move our buildbot to the production buildmaster, which sends emails/commends on similar cases (cc: @gkistanova)

Copy link
Contributor

@boomanaiden154 boomanaiden154 left a comment

Choose a reason for hiding this comment

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

The motivation for the revert needs to go in the PR description (which will become the commit description), not a comment.

I'll try and reproduce this locally on a AArch64 machine. If I can't, I'm going to need you to reproduce and send over a profile and maybe some bitcode. I'll reach out if I end up needing anything.

@paschalis-mpeis
Copy link
Member Author

paschalis-mpeis commented Sep 17, 2025

Hey @boomanaiden154,

Thanks for the quick reply! You are right, I've updated the PR description.

I'll try and reproduce this locally on a AArch64 machine. If I can't, I'm going to need you to reproduce and send over a profile and maybe some bitcode. I'll reach out if I end up needing anything.

I was able to run without issues with this reversal patch on top of a044d61.
Of course, happy to follow-up if needed.

Given your approval, should I proceed with the merge?

@boomanaiden154
Copy link
Contributor

Given your approval, should I proceed with the merge?

Yes.

@paschalis-mpeis paschalis-mpeis merged commit 8ed4899 into main Sep 17, 2025
13 checks passed
@paschalis-mpeis paschalis-mpeis deleted the users/paschalis-mpeis/revert-irpgo-cmake-cache branch September 17, 2025 14:48
@llvm-ci
Copy link
Collaborator

llvm-ci commented Sep 17, 2025

LLVM Buildbot has detected a new failure on builder lldb-x86_64-debian running on lldb-x86_64-debian while building clang at step 6 "test".

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

Here is the relevant piece of the build log for the reference
Step 6 (test) failure: build (failure)
...
PASS: lldb-api :: functionalities/postmortem/elf-core/gcore/TestGCore.py (528 of 3192)
PASS: lldb-api :: functionalities/gdb_remote_client/TestTargetXMLArch.py (529 of 3192)
PASS: lldb-api :: functionalities/postmortem/elf-core/thread_crash/TestLinuxCoreThreads.py (530 of 3192)
PASS: lldb-api :: functionalities/postmortem/minidump/TestMiniDump.py (531 of 3192)
UNSUPPORTED: lldb-api :: functionalities/pre_run_dylibs/TestPreRunDylibs.py (532 of 3192)
PASS: lldb-api :: functionalities/inferior-crashing/recursive-inferior/TestRecursiveInferiorStep.py (533 of 3192)
PASS: lldb-api :: functionalities/optimized_code/TestNoASanExceptionAfterEvalOP_piece.py (534 of 3192)
PASS: lldb-api :: functionalities/postmortem/elf-core/expr/TestExpr.py (535 of 3192)
PASS: lldb-api :: functionalities/non-overlapping-index-variable-i/TestIndexVariable.py (536 of 3192)
PASS: lldb-api :: functionalities/postmortem/wow64_minidump/TestWow64MiniDump.py (537 of 3192)
FAIL: lldb-api :: functionalities/postmortem/netbsd-core/TestNetBSDCore.py (538 of 3192)
******************** TEST 'lldb-api :: functionalities/postmortem/netbsd-core/TestNetBSDCore.py' FAILED ********************
Script:
--
/usr/bin/python3 /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/worker/2.0.1/lldb-x86_64-debian/build/./lib --env LLVM_INCLUDE_DIR=/home/worker/2.0.1/lldb-x86_64-debian/build/include --env LLVM_TOOLS_DIR=/home/worker/2.0.1/lldb-x86_64-debian/build/./bin --arch x86_64 --build-dir /home/worker/2.0.1/lldb-x86_64-debian/build/lldb-test-build.noindex --lldb-module-cache-dir /home/worker/2.0.1/lldb-x86_64-debian/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/worker/2.0.1/lldb-x86_64-debian/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/worker/2.0.1/lldb-x86_64-debian/build/./bin/lldb --compiler /home/worker/2.0.1/lldb-x86_64-debian/build/./bin/clang --dsymutil /home/worker/2.0.1/lldb-x86_64-debian/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/worker/2.0.1/lldb-x86_64-debian/build/./bin --lldb-obj-root /home/worker/2.0.1/lldb-x86_64-debian/build/tools/lldb --lldb-libs-dir /home/worker/2.0.1/lldb-x86_64-debian/build/./lib --cmake-build-type Release -t /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/lldb/test/API/functionalities/postmortem/netbsd-core -p TestNetBSDCore.py
--
Exit Code: -6

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

--
Command Output (stderr):
--
Change dir to: /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/lldb/test/API/functionalities/postmortem/netbsd-core
runCmd: settings clear --all

output: 

runCmd: settings set symbols.enable-external-lookup false

output: 

runCmd: settings set target.inherit-tcc true

output: 

runCmd: settings set target.disable-aslr false

output: 

runCmd: settings set target.detach-on-error false

output: 


kimsh02 pushed a commit to kimsh02/llvm-project that referenced this pull request Sep 19, 2025
…lvm#155957)" (llvm#159367)

This reverts commit 7fca1f8.

PR llvm#55957 breaks the BOLT buildbot bolt-aarch64-ubuntu-clang:
https://lab.llvm.org/staging/#/builders/126

Example build:
https://lab.llvm.org/staging/#/builders/126/builds/2628

> ld.lld:
/home/buildbot/workspace/bolt-aarch64-ubuntu-clang/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:10194:
bool llvm::LoopVectorizePass::processLoop(llvm::Loop*): Assertion
`!verifyFunction(*F, &dbgs())' failed.
itzexpoexpo pushed a commit to itzexpoexpo/llvm-project that referenced this pull request Sep 21, 2025
…lvm#155957)" (llvm#159367)

This reverts commit 7fca1f8.

PR llvm#55957 breaks the BOLT buildbot bolt-aarch64-ubuntu-clang:
https://lab.llvm.org/staging/#/builders/126

Example build:
https://lab.llvm.org/staging/#/builders/126/builds/2628

> ld.lld:
/home/buildbot/workspace/bolt-aarch64-ubuntu-clang/llvm-project/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:10194:
bool llvm::LoopVectorizePass::processLoop(llvm::Loop*): Assertion
`!verifyFunction(*F, &dbgs())' failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants