[llvm] [AArch64] Use GISel for optnone functions (PR #174746)

Ryan Cowan via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 27 02:03:30 PST 2026


================
@@ -13,7 +13,7 @@
 ; For the YAML case, the function we pick depends on the order of the candidate
 ; list.
 ; YAML: --- !Missed
-; YAML-NEXT: Pass:            machine-outliner
+; YAML-DAG: Pass:            machine-outliner
----------------
HolyMolyCowMan wrote:

For AArch64 some of the GlobalISel passes correctly produce a remark as shown below. I made use of DAG instead of next to allow these passes to be skipped by FileCheck on AArch64 but maintain the existing behavior as closely as possible.

```
--- !Missed
Pass:            gisel-irtranslator
Name:            GISelFailure
DebugLoc:        { File: machine-outliner-remarks.ll, Line: 3, Column: 0 }
Function:        dog
Args:
  - String:          'unable to lower function: '
  - Prototype:       'void ()'
...
--- !Analysis
Pass:            prologepilog
Name:            StackSize
DebugLoc:        { File: machine-outliner-remarks.ll, Line: 3, Column: 0 }
Function:        dog
Args:
  - NumStackBytes:   '16'
  - String:          ' stack bytes in function '''
  - Function:        dog
  - String:          ''''
...

............

--- !Missed
Pass:            gisel-irtranslator
Name:            GISelFailure
DebugLoc:        { File: machine-outliner-remarks.ll, Line: 35, Column: 0 }
Function:        bar
Args:
  - String:          'unable to lower function: '
  - Prototype:       'void ()'
...
--- !Analysis
Pass:            prologepilog
Name:            StackSize
DebugLoc:        { File: machine-outliner-remarks.ll, Line: 35, Column: 0 }
Function:        bar
Args:
  - NumStackBytes:   '32'
  - String:          ' stack bytes in function '''
  - Function:        bar
  - String:          ''''
...
```

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


More information about the llvm-commits mailing list