[llvm] [AArch64] Add isAppleMLike helper to check for M cores and aligned CPUs. (PR #170553)

via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 3 13:04:18 PST 2025


github-actions[bot] wrote:

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

* 166695 tests passed
* 2907 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.Transforms/LoopUnroll/AArch64/falkor-prefetch.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopUnroll/AArch64/falkor-prefetch.ll -S -passes=loop-unroll -mtriple aarch64 -mcpu=falkor | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopUnroll/AArch64/falkor-prefetch.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -S -passes=loop-unroll -mtriple aarch64 -mcpu=falkor
# 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/LoopUnroll/AArch64/falkor-prefetch.ll
# note: command had no output on stdout or stderr
# 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/LoopUnroll/AArch64/falkor-prefetch.ll -S -passes=loop-unroll -mtriple aarch64 -mcpu=falkor -enable-falkor-hwpf-unroll-fix=0 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopUnroll/AArch64/falkor-prefetch.ll --check-prefix=NOHWPF
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -S -passes=loop-unroll -mtriple aarch64 -mcpu=falkor -enable-falkor-hwpf-unroll-fix=0
# 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/LoopUnroll/AArch64/falkor-prefetch.ll --check-prefix=NOHWPF
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopUnroll/AArch64/falkor-prefetch.ll:20:16: error: NOHWPF-NEXT: expected string not found in input
# | ; NOHWPF-NEXT: getelementptr
# |                ^
# | <stdin>:21:14: note: scanning from here
# |  %inc.1 = add nuw nsw i32 %iv, 2
# |              ^
# | <stdin>:23:20: note: possible intended match here
# |  br i1 %exitcnd.1, label %exit, label %loop
# |                    ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopUnroll/AArch64/falkor-prefetch.ll:92:16: error: NOHWPF-NEXT: expected string not found in input
# | ; NOHWPF-NEXT: getelementptr
# |                ^
# | <stdin>:59:15: note: scanning from here
# |  %inc2.3 = add nuw nsw i32 %iv2, 4
# |               ^
# | <stdin>:61:21: note: possible intended match here
# |  br i1 %exitcnd2.3, label %exit2, label %loop2
# |                     ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopUnroll/AArch64/falkor-prefetch.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           16:  %inc = add nuw nsw i32 %iv, 1 
# |           17:  %gep.1 = getelementptr inbounds i32, ptr %p, i32 %inc 
# |           18:  %load.1 = load volatile i32, ptr %gep.1, align 4 
# |           19:  %gep2.1 = getelementptr inbounds i32, ptr %p2, i32 %inc 
# |           20:  %load2.1 = load volatile i32, ptr %gep2.1, align 4 
# |           21:  %inc.1 = add nuw nsw i32 %iv, 2 
# | next:20'0                  X~~~~~~~~~~~~~~~~~~~ error: no match found
# |           22:  %exitcnd.1 = icmp samesign uge i32 %inc.1, 1024 
# | next:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           23:  br i1 %exitcnd.1, label %exit, label %loop 
# | next:20'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:20'1                        ?                         possible intended match
# |           24:  
# | next:20'0     ~
# |           25: exit: ; preds = %loop 
# | next:20'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           26:  ret void 
# | next:20'0     ~~~~~~~~~~
# |           27: } 
# | next:20'0     ~~
# |           28:  
# | next:20'0     ~
# |            .
# |            .
# |            .
# |           54:  %sum.inc.2 = add i32 %sum.inc.1, %load.2 
# |           55:  %inc2.2 = add nuw nsw i32 %iv2, 3 
# |           56:  %gep.3 = getelementptr inbounds i32, ptr %p, i32 %inc2.2 
# |           57:  %load.3 = load i32, ptr %gep.3, align 4 
# |           58:  %sum.inc.3 = add i32 %sum.inc.2, %load.3 
# |           59:  %inc2.3 = add nuw nsw i32 %iv2, 4 
# | next:92'0                   X~~~~~~~~~~~~~~~~~~~~ error: no match found
# |           60:  %exitcnd2.3 = icmp samesign uge i32 %inc2.3, 1024 
# | next:92'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           61:  br i1 %exitcnd2.3, label %exit2, label %loop2 
# | next:92'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:92'1                         ?                           possible intended match
# |           62:  
# | next:92'0     ~
# |           63: exit2: ; preds = %loop2 
# | next:92'0     ~~~~~~~~~~~~~~~~~~~~~~~~
# |           64:  %sum.lcssa = phi i32 [ %sum.inc.2, %loop2 ] 
# | next:92'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           65:  %exitcnd2.lcssa = phi i1 [ %exitcnd2.3, %loop2 ] 
# | next:92'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           66:  br label %loop1.latch 
# | next:92'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/170553


More information about the llvm-commits mailing list