[llvm] InstrProf: Mark BiasLI as invariant. (PR #95588)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 19:01:15 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `llvm` at step 5 "ninja check 1".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Instrumentation/InstrProfiling/runtime-counter-relocation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt < /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll -S -passes=instrprof | /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt -S -passes=instrprof
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'x86_64-unknown-linux-gnu', see --version and --triple.
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt: WARNING: failed to create target machine for 'x86_64-unknown-linux-gnu': unable to get target for 'x86_64-unknown-linux-gnu', see --version and --triple.
RUN: at line 2: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt < /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll -S -passes=instrprof -runtime-counter-relocation | /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck -check-prefixes=RELOC /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt -S -passes=instrprof -runtime-counter-relocation
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck -check-prefixes=RELOC /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt: warning: failed to infer data layout: unable to get target for 'x86_64-unknown-linux-gnu', see --version and --triple.
/home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt: WARNING: failed to create target machine for 'x86_64-unknown-linux-gnu': unable to get target for 'x86_64-unknown-linux-gnu', see --version and --triple.
/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll:19:15: error: RELOC-NEXT: expected string not found in input
; RELOC-NEXT: %[[BIAS:.+]] = load i64, ptr @__llvm_profile_counter_bias, align 8, !invariant.load !0
              ^
<stdin>:30:17: note: scanning from here
define void @foo() {
                ^
<stdin>:31:8: note: possible intended match here
 %profc_bias = load i64, ptr @__llvm_profile_counter_bias, align 4, !invariant.load !0
       ^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll

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

Input was:
<<<<<<
           .
           .
           .
          25:  %3 = add i64 %pgocount, 1 
          26:  store i64 %3, ptr %2, align 4 
          27:  ret void 
          28: } 
          29:  
          30: define void @foo() { 
next:19'0                     X~~~~ error: no match found
          31:  %profc_bias = load i64, ptr @__llvm_profile_counter_bias, align 4, !invariant.load !0 
next:19'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:19'1            ?                                                                                possible intended match
          32:  %1 = add i64 ptrtoint (ptr @__profc_foo to i64), %profc_bias 
next:19'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          33:  %2 = inttoptr i64 %1 to ptr 
next:19'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          34:  %pgocount = load i64, ptr %2, align 4 
...

```

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


More information about the llvm-commits mailing list