[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 02:24:12 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/4495
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-sizelatency.ll' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 2: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt < /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Analysis/CostModel/X86/cttz-sizelatency.ll -mtriple=x86_64-unknown-linux-gnu -passes="print<cost-model>" 2>&1 -disable-output -cost-kind=size-latency -mattr=-bmi,+sse2 | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Analysis/CostModel/X86/cttz-sizelatency.ll -check-prefixes=CHECK,NOBMI
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -mtriple=x86_64-unknown-linux-gnu '-passes=print<cost-model>' -disable-output -cost-kind=size-latency -mattr=-bmi,+sse2
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Analysis/CostModel/X86/cttz-sizelatency.ll -check-prefixes=CHECK,NOBMI
[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Analysis/CostModel/X86/cttz-sizelatency.ll:43:15: [0m[0;1;31merror: [0m[1mNOBMI-NEXT: expected string not found in input
[0m; NOBMI-NEXT: Cost Model: Found an estimated cost of 2 for instruction: %cttz = call i32 @llvm.cttz.i32(i32 %a, i1 false)
[0;1;32m ^
[0m[1m<stdin>:7:68: [0m[0;1;30mnote: [0m[1mscanning from here
[0mPrinting analysis 'Cost Model Analysis' for function 'var_cttz_i32':
[0;1;32m ^
[0m[1m<stdin>:8:1: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0mCost Model: Found an estimated cost of 1 for instruction: %cttz = call i32 @llvm.cttz.i32(i32 %a, i1 false)
[0;1;32m^
[0m
Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Analysis/CostModel/X86/cttz-sizelatency.ll
-dump-input=help explains the following input dump.
Input was:
<<<<<<
[1m[0m[0;1;30m 1: [0m[1m[0;1;46mPrinting analysis 'Cost Model Analysis' for function [0m'var_cttz_i64'[0;1;46m: [0m
[0;1;32mlabel:20'0 ^~~~~~~~~~~~~~
[0m[0;1;32mlabel:20'1 ^~~~~~~~~~~~~~
[0m[0;1;30m 2: [0m[1m[0;1;46m[0mCost Model: Found an estimated cost of 2 for instruction: %cttz = call i64 @llvm.cttz.i64(i64 %a, i1 false)[0;1;46m [0m
[0;1;32mnext:21 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 3: [0m[1m[0;1;46m[0mCost Model: Found an estimated cost of 1 for instruction: ret i64 %cttz[0;1;46m [0m
[0;1;32mnext:22 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 4: [0m[1m[0;1;46mPrinting analysis 'Cost Model Analysis' for function [0m'var_cttz_i64u'[0;1;46m: [0m
[0;1;32mlabel:33'0 ^~~~~~~~~~~~~~~
[0m[0;1;32mlabel:33'1 ^~~~~~~~~~~~~~~
[0m[0;1;30m 5: [0m[1m[0;1;46m[0mCost Model: Found an estimated cost of 1 for instruction: %cttz = call i64 @llvm.cttz.i64(i64 %a, i1 true)[0;1;46m [0m
[0;1;32mnext:34 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 6: [0m[1m[0;1;46m[0mCost Model: Found an estimated cost of 1 for instruction: ret i64 %cttz[0;1;46m [0m
[0;1;32mnext:35 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 7: [0m[1m[0;1;46mPrinting analysis 'Cost Model Analysis' for function [0m'var_cttz_i32'[0;1;46m: [0m
[0;1;32mlabel:42'0 ^~~~~~~~~~~~~~
[0m[0;1;32mlabel:42'1 ^~~~~~~~~~~~~~
[0m[0;1;31mnext:43'0 X~ error: no match found
[0m[0;1;30m 8: [0m[1m[0;1;46mCost Model: Found an estimated cost of 1 for instruction: %cttz = call i32 @llvm.cttz.i32(i32 %a, i1 false) [0m
[0;1;31mnext:43'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;35mnext:43'1 ? possible intended match
[0m[0;1;30m 9: [0m[1m[0;1;46mCost Model: Found an estimated cost of 1 for instruction: ret i32 %cttz [0m
[0;1;31mnext:43'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[0m[0;1;30m 10: [0m[1m[0;1;46mPrinting analysis 'Cost Model Analysis' for function [0m'var_cttz_i32u'[0;1;46m: [0m
[0;1;32mlabel:55 ^~~~~~~~~~~~~~~
...
```
https://github.com/llvm/llvm-project/pull/102900
More information about the llvm-commits
mailing list