[llvm] [X86] Promote cttz_i32(x) -> cttz_i64((i64)x | (1 << 32)) (PR #102900)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 13 03:17:27 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `lld-x86_64-ubuntu-fast` running on `as-builder-4` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/1061
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 :: Analysis/CostModel/X86/cttz-latency.ll' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 2: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt < /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Analysis/CostModel/X86/cttz-latency.ll -mtriple=x86_64-unknown-linux-gnu -passes="print<cost-model>" 2>&1 -disable-output -cost-kind=latency -mattr=-bmi,+sse2 | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Analysis/CostModel/X86/cttz-latency.ll -check-prefixes=CHECK,SSE2,NOBMI
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -mtriple=x86_64-unknown-linux-gnu '-passes=print<cost-model>' -disable-output -cost-kind=latency -mattr=-bmi,+sse2
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Analysis/CostModel/X86/cttz-latency.ll -check-prefixes=CHECK,SSE2,NOBMI
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Analysis/CostModel/X86/cttz-latency.ll:43:15: error: NOBMI-NEXT: expected string not found in input
; NOBMI-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %cttz = call i32 @llvm.cttz.i32(i32 %a, i1 false)
^
<stdin>:7:68: note: scanning from here
Printing analysis 'Cost Model Analysis' for function 'var_cttz_i32':
^
<stdin>:8:1: note: possible intended match here
Cost Model: Found an estimated cost of 1 for instruction: %cttz = call i32 @llvm.cttz.i32(i32 %a, i1 false)
^
Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Analysis/CostModel/X86/cttz-latency.ll
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: Printing analysis 'Cost Model Analysis' for function 'var_cttz_i64':
2: Cost Model: Found an estimated cost of 2 for instruction: %cttz = call i64 @llvm.cttz.i64(i64 %a, i1 false)
3: Cost Model: Found an estimated cost of 1 for instruction: ret i64 %cttz
4: Printing analysis 'Cost Model Analysis' for function 'var_cttz_i64u':
5: Cost Model: Found an estimated cost of 1 for instruction: %cttz = call i64 @llvm.cttz.i64(i64 %a, i1 true)
6: Cost Model: Found an estimated cost of 1 for instruction: ret i64 %cttz
7: Printing analysis 'Cost Model Analysis' for function 'var_cttz_i32':
next:43'0 X~ error: no match found
8: Cost Model: Found an estimated cost of 1 for instruction: %cttz = call i32 @llvm.cttz.i32(i32 %a, i1 false)
next:43'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:43'1 ? possible intended match
9: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %cttz
next:43'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10: Printing analysis 'Cost Model Analysis' for function 'var_cttz_i32u':
next:43'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11: Cost Model: Found an estimated cost of 1 for instruction: %cttz = call i32 @llvm.cttz.i32(i32 %a, i1 true)
12: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %cttz
13: Printing analysis 'Cost Model Analysis' for function 'var_cttz_i16':
.
.
.
>>>>>>
--
...
```
https://github.com/llvm/llvm-project/pull/102900
More information about the llvm-commits
mailing list