[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 11:35:50 PDT 2025
snehasish wrote:
@cristianassaiante The linux CI check is failing and it looks like it's related to this change. Raw logs for the CI run are [here](https://productionresultssa0.blob.core.windows.net/actions-results/835dc4cb-d13e-4836-8f7f-8723d060bfd4/workflow-job-run-c3497be2-15f3-5668-aca4-c1a4ae1b0918/logs/job/job-logs.txt?rsct=text%2Fplain&se=2025-07-16T18%3A31%3A53Z&sig=6soPkjlk3y1PWC3QpKw0gBT4STQ%2FvoYhPwiwKmhVrpg%3D&ske=2025-07-17T04%3A00%3A38Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-07-16T16%3A00%3A38Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-05-05&sp=r&spr=https&sr=b&st=2025-07-16T18%3A21%3A48Z&sv=2025-05-05).
```
2025-07-16T17:58:59.5847693Z Failed Tests (1):
2025-07-16T17:58:59.5847917Z Clang :: CodeGen/new-pass-manager-opt-bisect.c
2025-07-16T17:58:59.5848108Z
2025-07-16T17:58:59.5848112Z
2025-07-16T17:58:59.5848183Z Testing Time: 85.21s
2025-07-16T17:58:59.5848300Z
2025-07-16T17:58:59.5848382Z Total Discovered Tests: 47733
2025-07-16T17:58:59.5848590Z Skipped : 4 (0.01%)
2025-07-16T17:58:59.5848853Z Unsupported : 418 (0.88%)
2025-07-16T17:58:59.5849066Z Passed : 47279 (99.05%)
2025-07-16T17:58:59.5849285Z Expectedly Failed: 31 (0.06%)
2025-07-16T17:58:59.5849497Z Failed : 1 (0.00%)
... 8< ....
2025-07-16T17:58:16.7982458Z FAIL: Clang :: CodeGen/new-pass-manager-opt-bisect.c (8130 of 22135)
2025-07-16T17:58:16.7983386Z ******************** TEST 'Clang :: CodeGen/new-pass-manager-opt-bisect.c' FAILED ********************
2025-07-16T17:58:16.7984760Z Exit Code: 1
2025-07-16T17:58:16.7985078Z
2025-07-16T17:58:16.7985332Z Command Output (stderr):
2025-07-16T17:58:16.7985812Z --
2025-07-16T17:58:16.7989099Z /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -triple x86_64-linux-gnu -O1 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/new-pass-manager-opt-bisect.c -mllvm -opt-bisect-limit=-1 -emit-obj -o /dev/null 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/new-pass-manager-opt-bisect.c # RUN: at line 5
2025-07-16T17:58:16.7994703Z + /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -triple x86_64-linux-gnu -O1 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/new-pass-manager-opt-bisect.c -mllvm -opt-bisect-limit=-1 -emit-obj -o /dev/null
2025-07-16T17:58:16.7998369Z + /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/new-pass-manager-opt-bisect.c
2025-07-16T17:58:16.8000885Z /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/new-pass-manager-opt-bisect.c:10:11: error: CHECK: expected string not found in input
2025-07-16T17:58:16.8002127Z // CHECK: Instruction Selection
2025-07-16T17:58:16.8004780Z ^
2025-07-16T17:58:16.8005132Z <stdin>:1:25: note: scanning from here
2025-07-16T17:58:16.8005683Z BISECT: running pass (1) annotation2metadata on [module]
2025-07-16T17:58:16.8006335Z ^
2025-07-16T17:58:16.8006756Z <stdin>:82:28: note: possible intended match here
2025-07-16T17:58:16.8013703Z BISECT: running pass (82) consthoist on function (func)
2025-07-16T17:58:16.8014412Z ^
2025-07-16T17:58:16.8014630Z
2025-07-16T17:58:16.8014736Z Input file: <stdin>
2025-07-16T17:58:16.8017397Z Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/new-pass-manager-opt-bisect.c
2025-07-16T17:58:16.8018145Z
2025-07-16T17:58:16.8018340Z -dump-input=help explains the following input dump.
2025-07-16T17:58:16.8018726Z
2025-07-16T17:58:16.8018840Z Input was:
2025-07-16T17:58:16.8019098Z <<<<<<
2025-07-16T17:58:16.8019487Z 1: BISECT: running pass (1) annotation2metadata on [module]
2025-07-16T17:58:16.8020108Z check:10'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2025-07-16T17:58:16.8020662Z 2: BISECT: running pass (2) forceattrs on [module]
2025-07-16T17:58:16.8021160Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8021665Z 3: BISECT: running pass (3) declare-to-assign on [module]
2025-07-16T17:58:16.8022238Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8022778Z 4: BISECT: running pass (4) inferattrs on [module]
2025-07-16T17:58:16.8023321Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8024001Z 5: BISECT: running pass (5) lower-expect on func
2025-07-16T17:58:16.8024697Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8025222Z 6: BISECT: running pass (6) simplifycfg on func
2025-07-16T17:58:16.8025717Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8026323Z .
2025-07-16T17:58:16.8026583Z .
2025-07-16T17:58:16.8026851Z .
2025-07-16T17:58:16.8027201Z 77: BISECT: running pass (77) constmerge on [module]
2025-07-16T17:58:16.8027731Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8028217Z 78: BISECT: running pass (78) cg-profile on [module]
2025-07-16T17:58:16.8028700Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8029259Z 79: BISECT: running pass (79) rel-lookup-table-converter on [module]
2025-07-16T17:58:16.8029760Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8030329Z 80: BISECT: running pass (80) mergeicmps on function (func)
2025-07-16T17:58:16.8030881Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8031462Z 81: BISECT: running pass (81) expand-memcmp on function (func)
2025-07-16T17:58:16.8031998Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8032442Z 82: BISECT: running pass (82) consthoist on function (func)
2025-07-16T17:58:16.8032994Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8033461Z check:10'1 ? possible intended match
2025-07-16T17:58:16.8034249Z 83: BISECT: running pass (83) partially-inline-libcalls on function (func)
2025-07-16T17:58:16.8034920Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8035557Z 84: BISECT: running pass (84) interleaved-access on function (func)
2025-07-16T17:58:16.8036144Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8036703Z 85: BISECT: running pass (85) x86-partial-reduction on function (func)
2025-07-16T17:58:16.8037320Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8037930Z 86: BISECT: running pass (86) codegenprepare on function (func)
2025-07-16T17:58:16.8038474Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8038939Z 87: BISECT: running pass (87) x86-isel on function (func)
2025-07-16T17:58:16.8039372Z check:10'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2025-07-16T17:58:16.8039744Z .
2025-07-16T17:58:16.8040137Z .
2025-07-16T17:58:16.8040400Z .
2025-07-16T17:58:16.8040656Z >>>>>>
2025-07-16T17:58:16.8040816Z
2025-07-16T17:58:16.8040923Z --
2025-07-16T17:58:16.8041071Z
2025-07-16T17:58:16.8041181Z ********************
```
Can you take a look?
https://github.com/llvm/llvm-project/pull/145059
More information about the llvm-commits
mailing list