[llvm] [llvm][CodeGen] Address the issue of multiple resource reservations in window scheduling (PR #100301)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 2 04:35:46 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `llvm` at step 6 "test-build-unified-tree-check-all".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/Hexagon/swp-ws-resource-reserve.mir' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 2: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc --march=hexagon /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/Hexagon/swp-ws-resource-reserve.mir -run-pass=pipeliner -debug-only=pipeliner  -window-sched=force -filetype=null -verify-machineinstrs 2>&1  -window-search-ratio=100 -window-search-num=100 -window-diff-limit=1  | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/Hexagon/swp-ws-resource-reserve.mir
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/llc --march=hexagon /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/Hexagon/swp-ws-resource-reserve.mir -run-pass=pipeliner -debug-only=pipeliner -window-sched=force -filetype=null -verify-machineinstrs -window-search-ratio=100 -window-search-num=100 -window-diff-limit=1
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/Hexagon/swp-ws-resource-reserve.mir
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/Hexagon/swp-ws-resource-reserve.mir:9:15: error: CHECK-NEXT: is not on the line after the previous match
# CHECK-NEXT: Cycle [[CycleNum:[0-9]+]] [[[StageNum:S.[0-9]+]]]: {{%[0-9]+}}:hvxvr = V6_vaddw {{%[0-9]+}}:hvxvr, {{%[0-9]+}}:hvxvr
              ^
<stdin>:1003:2: note: 'next' match was here
 Cycle 0 [S.1]: %21:hvxvr = V6_vaddw %18:hvxvr, %19:hvxvr
 ^
<stdin>:1000:42: note: previous match ended here
Best window offset is 6 and Best II is 2.
                                         ^
<stdin>:1001:1: note: non-matching line after previous match is here
 Cycle 0 [S.0]: %13:intregs = PHI %1:intregs, %bb.1, %14:intregs, %bb.3
^

Input file: <stdin>
Check file: /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/CodeGen/Hexagon/swp-ws-resource-reserve.mir

-dump-input=help explains the following input dump.

Input was:
<<<<<<
        .
        .
        .
      998: Current window Offset is 9 and II is 4. 
      999:  
     1000: Best window offset is 6 and Best II is 2. 
     1001:  Cycle 0 [S.0]: %13:intregs = PHI %1:intregs, %bb.1, %14:intregs, %bb.3 
     1002:  Cycle 0 [S.0]: %17:hvxvr, %14:intregs = V6_vL32b_pi %13:intregs(tied-def 1), 128 :: (load (s1024) from %ir.lsr.iv1) 
     1003:  Cycle 0 [S.1]: %21:hvxvr = V6_vaddw %18:hvxvr, %19:hvxvr 
next:9      !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  error: match on wrong line
     1004:  Cycle 0 [S.1]: %22:hvxvr = V6_vaddw %18:hvxvr, %20:hvxvr 
     1005:  Cycle 0 [S.0]: %18:hvxvr = V6_vaddw %7:hvxvr, %17:hvxvr 
     1006:  Cycle 1 [S.0]: %15:intregs = PHI %0:intregs, %bb.1, %16:intregs, %bb.3 
     1007:  Cycle 1 [S.0]: %19:hvxvr = V6_vaddw %5:hvxvr, %17:hvxvr 
     1008:  Cycle 1 [S.1]: %23:hvxvr = V6_vaddw %22:hvxvr, %21:hvxvr 
        .
        .
        .
>>>>>>

--

...

```

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


More information about the llvm-commits mailing list