[llvm] [X86][Inline] Don't inline callee with cx16 if caller is without cx16 (PR #187505)

via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 19 08:16:04 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 171486 tests passed
* 3057 tests skipped
* 2 tests failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.Transforms/Inline/X86/inline-target-cpu-i686.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll -mtriple=i686-unknown-unknown -S -passes=inline | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -mtriple=i686-unknown-unknown -S -passes=inline
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll:13:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: ret i32 0
# |               ^
# | <stdin>:12:56: note: scanning from here
# | define i32 @target_cpu_prescott_call_target_cpu_nocona() #1 {
# |                                                        ^
# | <stdin>:14:2: note: possible intended match here
# |  ret i32 %call
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |            7: define i32 @func_target_cpu_nocona() #0 { 
# |            8:  ret i32 0 
# |            9: } 
# |           10:  
# |           11: ; Function Attrs: nounwind 
# |           12: define i32 @target_cpu_prescott_call_target_cpu_nocona() #1 { 
# | next:13'0                                                            X~~~~~~ error: no match found
# |           13:  %call = call i32 @func_target_cpu_nocona() 
# | next:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           14:  ret i32 %call 
# | next:13'0     ~~~~~~~~~~~~~~~
# | next:13'1      ?              possible intended match
# |           15: } 
# | next:13'0     ~~
# |           16:  
# | next:13'0     ~
# |           17: attributes #0 = { nounwind "target-cpu"="nocona" } 
# | next:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           18: attributes #1 = { nounwind "target-cpu"="prescott" } 
# | next:13'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.Transforms/Inline/X86/inline-target-cpu-x86_64.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll -mtriple=x86_64-unknown-unknown -S -passes=inline | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -mtriple=x86_64-unknown-unknown -S -passes=inline
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll:44:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: ret i32 0
# |               ^
# | <stdin>:32:59: note: scanning from here
# | define i32 @target_cpu_target_base_call_target_cpu_nocona() #0 {
# |                                                           ^
# | <stdin>:34:2: note: possible intended match here
# |  ret i32 %call
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           27: define i32 @func_target_cpu_nocona() #4 { 
# |           28:  ret i32 0 
# |           29: } 
# |           30:  
# |           31: ; Function Attrs: nounwind 
# |           32: define i32 @target_cpu_target_base_call_target_cpu_nocona() #0 { 
# | next:44'0                                                               X~~~~~~ error: no match found
# |           33:  %call = call i32 @func_target_cpu_nocona() 
# | next:44'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           34:  ret i32 %call 
# | next:44'0     ~~~~~~~~~~~~~~~
# | next:44'1      ?              possible intended match
# |           35: } 
# | next:44'0     ~~
# |           36:  
# | next:44'0     ~
# |           37: attributes #0 = { nounwind "target-cpu"="x86-64" } 
# | next:44'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           38: attributes #1 = { nounwind "target-cpu"="k8" } 
# | next:44'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           39: attributes #2 = { nounwind "target-cpu"="nehalem" } 
# | next:44'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-commits mailing list