[llvm] X86: Mark EFLAGS clobbers dead in global base register setup (PR #229337)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 9 01:30:10 PDT 2026


llvm-ci wrote:

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

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

```
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/X86/global-base-reg-dead-eflags.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llc.exe < C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\CodeGen\X86\global-base-reg-dead-eflags.ll -mtriple=i686-unknown-linux-gnu -relocation-model=pic -stop-after=finalize-isel | 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\CodeGen\X86\global-base-reg-dead-eflags.ll --check-prefix=X86
# executed command: 'c:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\build\bin\llc.exe' -mtriple=i686-unknown-linux-gnu -relocation-model=pic -stop-after=finalize-isel
# 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\CodeGen\X86\global-base-reg-dead-eflags.ll' --check-prefix=X86
# .---command stderr------------
# | C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\CodeGen\X86\global-base-reg-dead-eflags.ll:13:14: error: X86-NEXT: expected string not found in input
# |  ; X86-NEXT: [[MOV32rm1:%[0-9]+]]:gr32 = MOV32rm killed [[MOV32rm]], 1, $noreg, 0, $noreg :: (dereferenceable load (s32) from @g)
# |              ^
# | <stdin>:76:92: note: scanning from here
# |  %1:gr32 = MOV32rm %0, 1, $noreg, target-flags(x86-got) @g, $noreg :: (load (s32) from got)
# |                                                                                            ^
# | <stdin>:76:92: note: with "MOV32rm" equal to "%1"
# |  %1:gr32 = MOV32rm %0, 1, $noreg, target-flags(x86-got) @g, $noreg :: (load (s32) from got)
# |                                                                                            ^
# | <stdin>:76:92: note: pattern attempts to capture variables: "MOV32rm1"
# |  %1:gr32 = MOV32rm %0, 1, $noreg, target-flags(x86-got) @g, $noreg :: (load (s32) from got)
# |                                                                                            ^
# | <stdin>:77:2: note: possible intended match here
# |  %2:gr32 = MOV32rm %1, 1, $noreg, 0, $noreg :: (dereferenceable load (s32) from @g)
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\buildbot\as-builder-8\llvm-nvptx-nvidia-win\llvm-project\llvm\test\CodeGen\X86\global-base-reg-dead-eflags.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           71:  amxProgModel: None 
# |           72: body: | 
# |           73:  bb.0 (%ir-block.0): 
# |           74:  %3:gr32 = MOVPC32r 0, implicit $esp, implicit $ssp 
# |           75:  %0:gr32_nosp = ADD32ri %3, target-flags(x86-got-absolute-address) &_GLOBAL_OFFSET_TABLE_, implicit-def dead $eflags 
# |           76:  %1:gr32 = MOV32rm %0, 1, $noreg, target-flags(x86-got) @g, $noreg :: (load (s32) from got) 
# | next:13'0                                                                                               {   search range start (exclusive)
# | next:13'1                                                                                                   error: no match found in search range
# | next:13'2                                                                                                   with "MOV32rm" equal to "%1"
# | next:13'3                                                                                                   pattern attempts to capture variables: "MOV32rm1"
# |           77:  %2:gr32 = MOV32rm %1, 1, $noreg, 0, $noreg :: (dereferenceable load (s32) from @g) 
# | next:13'4      ?                                                                                    possible intended match
# |           78:  $eax = COPY %2 
# |           79:  RET 0, $eax 
...

```

</details>

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


More information about the llvm-commits mailing list