[llvm] [profcheck] Don't verify generated global ctors/dtors (PR #170597)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 4 14:46:46 PST 2025


zeroomega wrote:

We are seeing test failures on `LLVM :: Transforms/PGOProfile/prof-verify-known-cold.ll` and `LLVM :: Transforms/PGOProfile/prof-verify.ll` on mac-x64 after this patch was landed.
Error log:

```
FAIL: LLVM :: Transforms/PGOProfile/prof-verify-known-cold.ll (51674 of 61651)
******************** TEST 'LLVM :: Transforms/PGOProfile/prof-verify-known-cold.ll' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
/Volumes/Work/s/w/ir/x/w/llvm_build/test/Transforms/PGOProfile/Output/prof-verify-known-cold.ll.script: line 1: syntax error near unexpected token `('
/Volumes/Work/s/w/ir/x/w/llvm_build/test/Transforms/PGOProfile/Output/prof-verify-known-cold.ll.script: line 1: `set -o pipefail;set -x;{ { set +x; } 2>/dev/null && echo '/Volumes/Work/s/w/ir/x/w/llvm_build/bin/opt -passes=function(prof-inject),module(prof-verify) /Volumes/Work/s/w/ir/x/w/llvm-llvm-project/llvm/test/Transforms/PGOProfile/prof-verify-known-cold.ll -o - 2>&1 | /Volumes/Work/s/w/ir/x/w/llvm_build/bin/FileCheck /Volumes/Work/s/w/ir/x/w/llvm-llvm-project/llvm/test/Transforms/PGOProfile/prof-verify-known-cold.ll' \# 'RUN: at line 3' >&2 && { set -x; } 2>/dev/null && {   /Volumes/Work/s/w/ir/x/w/llvm_build/bin/opt -passes=function(prof-inject),module(prof-verify) /Volumes/Work/s/w/ir/x/w/llvm-llvm-project/llvm/test/Transforms/PGOProfile/prof-verify-known-cold.ll -o - 2>&1 | /Volumes/Work/s/w/ir/x/w/llvm_build/bin/FileCheck /Volumes/Work/s/w/ir/x/w/llvm-llvm-project/llvm/test/Transforms/PGOProfile/prof-verify-known-cold.ll; }; }'

--

********************
PASS: LLVM :: Transforms/PGOProfile/misexpect-branch-overflow.ll (51675 of 61651)
FAIL: LLVM :: Transforms/PGOProfile/prof-verify.ll (51676 of 61651)
******************** TEST 'LLVM :: Transforms/PGOProfile/prof-verify.ll' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
/Volumes/Work/s/w/ir/x/w/llvm_build/test/Transforms/PGOProfile/Output/prof-verify.ll.script: line 3: syntax error near unexpected token `('
/Volumes/Work/s/w/ir/x/w/llvm_build/test/Transforms/PGOProfile/Output/prof-verify.ll.script: line 3: `{ { set +x; } 2>/dev/null && echo '/Volumes/Work/s/w/ir/x/w/llvm_build/bin/opt -passes=function(prof-inject),module(prof-verify) /Volumes/Work/s/w/ir/x/w/llvm-llvm-project/llvm/test/Transforms/PGOProfile/prof-verify.ll --disable-output' \# 'RUN: at line 9' >&2 && { set -x; } 2>/dev/null && {   /Volumes/Work/s/w/ir/x/w/llvm_build/bin/opt -passes=function(prof-inject),module(prof-verify) /Volumes/Work/s/w/ir/x/w/llvm-llvm-project/llvm/test/Transforms/PGOProfile/prof-verify.ll --disable-output; }; } &&'

--

********************
```
Not sure if it is related to the LIT internal shell.
First failed task: https://ci.chromium.org/ui/p/fuchsia/builders/toolchain.ci/clang-host-mac-x64/b8696380219269760513/overview

Could you revert the change and land the fix later?

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


More information about the llvm-commits mailing list