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

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


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `llvm` at step 6 "test-build-unified-tree-check-all".

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

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 :: Instrumentation/InstrProfiling/runtime-counter-relocation.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt < /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll -S -passes=instrprof | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -S -passes=instrprof
/Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt: warning: failed to infer data layout: unable to get target for 'x86_64-unknown-linux-gnu', see --version and --triple.
/Users/buildbot/buildbot-root/aarch64-darwin/build/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: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt < /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll -S -passes=instrprof -runtime-counter-relocation | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck -check-prefixes=RELOC /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -S -passes=instrprof -runtime-counter-relocation
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck -check-prefixes=RELOC /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
/Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt: warning: failed to infer data layout: unable to get target for 'x86_64-unknown-linux-gnu', see --version and --triple.
/Users/buildbot/buildbot-root/aarch64-darwin/build/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.
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/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: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll

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

Input was:
<<<<<<
            1: ; ModuleID = '<stdin>' 
            2: source_filename = "<stdin>" 
            3: target triple = "x86_64-unknown-linux-gnu" 
            4:  
            5: $__profc_bar = comdat nodeduplicate 
            6:  
            7: $__profc_foo = comdat nodeduplicate 
            8:  
            9: $__llvm_profile_counter_bias = comdat any 
check:11       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           10:  
           11:  at __profc_bar = private global [1 x i64] zeroinitializer, section "__llvm_prf_cnts", comdat, align 8 
           12:  at __profd_bar = private global { i64, i64, i64, i64, ptr, ptr, i32, [3 x i16], i32 } { i64 -2012135647395072713, i64 0, i64 sub (i64 ptrtoint (ptr @__profc_bar to i64), i64 ptrtoint (ptr @__profd_bar to i64)), i64 0, ptr null, ptr null, i32 1, [3 x i16] zeroinitializer, i32 0 }, section "__llvm_prf_data", comdat($__profc_bar), align 8 
           13:  at __profc_foo = private global [1 x i64] zeroinitializer, section "__llvm_prf_cnts", comdat, align 8 
           14:  at __profd_foo = private global { i64, i64, i64, i64, ptr, ptr, i32, [3 x i16], i32 } { i64 6699318081062747564, i64 0, i64 sub (i64 ptrtoint (ptr @__profc_foo to i64), i64 ptrtoint (ptr @__profd_foo to i64)), i64 0, ptr null, ptr null, i32 1, [3 x i16] zeroinitializer, i32 0 }, section "__llvm_prf_data", comdat($__profc_foo), align 8 
           15:  at __llvm_profile_counter_bias = linkonce_odr hidden global i64 0, comdat 
check:12       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           16:  at __llvm_prf_nm = private constant [17 x i8] c"\07\0Fx\DAKJ,bL\CB\CF\07\00\09\B8\02{", section "__llvm_prf_names", align 1 
...

```

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


More information about the llvm-commits mailing list