1 ; RUN: llc -mtriple=riscv32 -O3 -debug-pass=Structure < %s -o /dev/null 2>&1 | \
2 ; RUN: grep -v "Verify generated machine code" | \
3 ; RUN: FileCheck %s --check-prefixes=CHECK
4 ; RUN: llc -mtriple=riscv64 -O3 -debug-pass=Structure < %s -o /dev/null 2>&1 | \
5 ; RUN: grep -v "Verify generated machine code" | \
6 ; RUN: FileCheck %s --check-prefixes=CHECK,RV64
10 ; CHECK-LABEL: Pass Arguments:
11 ; CHECK-NEXT: Target Library Information
12 ; CHECK-NEXT: Target Pass Configuration
13 ; CHECK-NEXT: Machine Module Information
14 ; CHECK-NEXT: Target Transform Information
15 ; CHECK-NEXT: Assumption Cache Tracker
16 ; CHECK-NEXT: Profile summary info
17 ; CHECK-NEXT: Type-Based Alias Analysis
18 ; CHECK-NEXT: Scoped NoAlias Alias Analysis
19 ; CHECK-NEXT: Create Garbage Collector Module Metadata
20 ; CHECK-NEXT: Machine Branch Probability Analysis
21 ; CHECK-NEXT: Default Regalloc Eviction Advisor
22 ; CHECK-NEXT: Default Regalloc Priority Advisor
23 ; CHECK-NEXT: ModulePass Manager
24 ; CHECK-NEXT: Pre-ISel Intrinsic Lowering
25 ; CHECK-NEXT: FunctionPass Manager
26 ; CHECK-NEXT: Expand large div/rem
27 ; CHECK-NEXT: Expand large fp convert
28 ; CHECK-NEXT: Expand Atomic instructions
29 ; CHECK-NEXT: Dominator Tree Construction
30 ; CHECK-NEXT: Natural Loop Information
31 ; CHECK-NEXT: Canonicalize natural loops
32 ; CHECK-NEXT: Lazy Branch Probability Analysis
33 ; CHECK-NEXT: Lazy Block Frequency Analysis
34 ; CHECK-NEXT: Optimization Remark Emitter
35 ; CHECK-NEXT: Scalar Evolution Analysis
36 ; CHECK-NEXT: Loop Data Prefetch
37 ; CHECK-NEXT: RISC-V gather/scatter lowering
38 ; CHECK-NEXT: Interleaved Access Pass
39 ; CHECK-NEXT: RISC-V CodeGenPrepare
40 ; CHECK-NEXT: Module Verifier
41 ; CHECK-NEXT: Basic Alias Analysis (stateless AA impl)
42 ; CHECK-NEXT: Canonicalize natural loops
43 ; CHECK-NEXT: Scalar Evolution Analysis
44 ; CHECK-NEXT: Loop Pass Manager
45 ; CHECK-NEXT: Canonicalize Freeze Instructions in Loops
46 ; CHECK-NEXT: Induction Variable Users
47 ; CHECK-NEXT: Loop Strength Reduction
48 ; CHECK-NEXT: Basic Alias Analysis (stateless AA impl)
49 ; CHECK-NEXT: Function Alias Analysis Results
50 ; CHECK-NEXT: Merge contiguous icmps into a memcmp
51 ; CHECK-NEXT: Natural Loop Information
52 ; CHECK-NEXT: Lazy Branch Probability Analysis
53 ; CHECK-NEXT: Lazy Block Frequency Analysis
54 ; CHECK-NEXT: Expand memcmp() to load/stores
55 ; CHECK-NEXT: Lower Garbage Collection Instructions
56 ; CHECK-NEXT: Shadow Stack GC Lowering
57 ; CHECK-NEXT: Lower constant intrinsics
58 ; CHECK-NEXT: Remove unreachable blocks from the CFG
59 ; CHECK-NEXT: Natural Loop Information
60 ; CHECK-NEXT: Post-Dominator Tree Construction
61 ; CHECK-NEXT: Branch Probability Analysis
62 ; CHECK-NEXT: Block Frequency Analysis
63 ; CHECK-NEXT: Constant Hoisting
64 ; CHECK-NEXT: Replace intrinsics with calls to vector library
65 ; CHECK-NEXT: Partially inline calls to library functions
66 ; CHECK-NEXT: Expand vector predication intrinsics
67 ; CHECK-NEXT: Scalarize Masked Memory Intrinsics
68 ; CHECK-NEXT: Expand reduction intrinsics
69 ; CHECK-NEXT: Natural Loop Information
70 ; CHECK-NEXT: TLS Variable Hoist
71 ; CHECK-NEXT: Type Promotion
72 ; CHECK-NEXT: CodeGen Prepare
73 ; CHECK-NEXT: Dominator Tree Construction
74 ; CHECK-NEXT: Exception handling preparation
75 ; CHECK-NEXT: A No-Op Barrier Pass
76 ; CHECK-NEXT: FunctionPass Manager
77 ; CHECK-NEXT: Prepare callbr
78 ; CHECK-NEXT: Safe Stack instrumentation pass
79 ; CHECK-NEXT: Insert stack protectors
80 ; CHECK-NEXT: Module Verifier
81 ; CHECK-NEXT: Dominator Tree Construction
82 ; CHECK-NEXT: Basic Alias Analysis (stateless AA impl)
83 ; CHECK-NEXT: Function Alias Analysis Results
84 ; CHECK-NEXT: Natural Loop Information
85 ; CHECK-NEXT: Post-Dominator Tree Construction
86 ; CHECK-NEXT: Branch Probability Analysis
87 ; CHECK-NEXT: Assignment Tracking Analysis
88 ; CHECK-NEXT: Lazy Branch Probability Analysis
89 ; CHECK-NEXT: Lazy Block Frequency Analysis
90 ; CHECK-NEXT: RISC-V DAG->DAG Pattern Instruction Selection
91 ; CHECK-NEXT: Finalize ISel and expand pseudo-instructions
92 ; CHECK-NEXT: RISC-V Fold Masks
93 ; CHECK-NEXT: Lazy Machine Block Frequency Analysis
94 ; CHECK-NEXT: Early Tail Duplication
95 ; CHECK-NEXT: Optimize machine instruction PHIs
96 ; CHECK-NEXT: Slot index numbering
97 ; CHECK-NEXT: Merge disjoint stack slots
98 ; CHECK-NEXT: Local Stack Slot Allocation
99 ; CHECK-NEXT: Remove dead machine instructions
100 ; CHECK-NEXT: MachineDominator Tree Construction
101 ; CHECK-NEXT: Machine Natural Loop Construction
102 ; CHECK-NEXT: Machine Block Frequency Analysis
103 ; CHECK-NEXT: Early Machine Loop Invariant Code Motion
104 ; CHECK-NEXT: MachineDominator Tree Construction
105 ; CHECK-NEXT: Machine Block Frequency Analysis
106 ; CHECK-NEXT: Machine Common Subexpression Elimination
107 ; CHECK-NEXT: MachinePostDominator Tree Construction
108 ; CHECK-NEXT: Machine Cycle Info Analysis
109 ; CHECK-NEXT: Machine code sinking
110 ; CHECK-NEXT: Peephole Optimizations
111 ; CHECK-NEXT: Remove dead machine instructions
112 ; CHECK-NEXT: Machine Trace Metrics
113 ; CHECK-NEXT: Lazy Machine Block Frequency Analysis
114 ; CHECK-NEXT: Machine InstCombiner
115 ; RV64-NEXT: RISC-V Optimize W Instructions
116 ; CHECK-NEXT: RISC-V Pre-RA pseudo instruction expansion pass
117 ; CHECK-NEXT: RISC-V Merge Base Offset
118 ; CHECK-NEXT: RISC-V Insert Read/Write CSR Pass
119 ; CHECK-NEXT: RISC-V Insert Write VXRM Pass
120 ; CHECK-NEXT: Detect Dead Lanes
121 ; CHECK-NEXT: Init Undef Pass
122 ; CHECK-NEXT: Process Implicit Definitions
123 ; CHECK-NEXT: Remove unreachable machine basic blocks
124 ; CHECK-NEXT: Live Variable Analysis
125 ; CHECK-NEXT: Eliminate PHI nodes for register allocation
126 ; CHECK-NEXT: Two-Address instruction pass
127 ; CHECK-NEXT: MachineDominator Tree Construction
128 ; CHECK-NEXT: Slot index numbering
129 ; CHECK-NEXT: Live Interval Analysis
130 ; CHECK-NEXT: Register Coalescer
131 ; CHECK-NEXT: Rename Disconnected Subregister Components
132 ; CHECK-NEXT: Machine Instruction Scheduler
133 ; CHECK-NEXT: Machine Block Frequency Analysis
134 ; CHECK-NEXT: Debug Variable Analysis
135 ; CHECK-NEXT: Live Stack Slot Analysis
136 ; CHECK-NEXT: Virtual Register Map
137 ; CHECK-NEXT: Live Register Matrix
138 ; CHECK-NEXT: Bundle Machine CFG Edges
139 ; CHECK-NEXT: Spill Code Placement Analysis
140 ; CHECK-NEXT: Lazy Machine Block Frequency Analysis
141 ; CHECK-NEXT: Machine Optimization Remark Emitter
142 ; CHECK-NEXT: Greedy Register Allocator
143 ; CHECK-NEXT: Virtual Register Rewriter
144 ; CHECK-NEXT: RISC-V Insert VSETVLI pass
145 ; CHECK-NEXT: RISC-V Coalesce VSETVLI pass
146 ; CHECK-NEXT: RISC-V Dead register definitions
147 ; CHECK-NEXT: Virtual Register Map
148 ; CHECK-NEXT: Live Register Matrix
149 ; CHECK-NEXT: Greedy Register Allocator
150 ; CHECK-NEXT: Virtual Register Rewriter
151 ; CHECK-NEXT: Register Allocation Pass Scoring
152 ; CHECK-NEXT: Stack Slot Coloring
153 ; CHECK-NEXT: Machine Copy Propagation Pass
154 ; CHECK-NEXT: Machine Loop Invariant Code Motion
155 ; CHECK-NEXT: RISC-V Redundant Copy Elimination
156 ; CHECK-NEXT: Remove Redundant DEBUG_VALUE analysis
157 ; CHECK-NEXT: Fixup Statepoint Caller Saved
158 ; CHECK-NEXT: PostRA Machine Sink
159 ; CHECK-NEXT: MachineDominator Tree Construction
160 ; CHECK-NEXT: Machine Natural Loop Construction
161 ; CHECK-NEXT: Machine Block Frequency Analysis
162 ; CHECK-NEXT: MachinePostDominator Tree Construction
163 ; CHECK-NEXT: Lazy Machine Block Frequency Analysis
164 ; CHECK-NEXT: Machine Optimization Remark Emitter
165 ; CHECK-NEXT: Shrink Wrapping analysis
166 ; CHECK-NEXT: Prologue/Epilogue Insertion & Frame Finalization
167 ; CHECK-NEXT: Machine Late Instructions Cleanup Pass
168 ; CHECK-NEXT: Control Flow Optimizer
169 ; CHECK-NEXT: Lazy Machine Block Frequency Analysis
170 ; CHECK-NEXT: Tail Duplication
171 ; CHECK-NEXT: Machine Copy Propagation Pass
172 ; CHECK-NEXT: Post-RA pseudo instruction expansion pass
173 ; CHECK-NEXT: RISC-V post-regalloc pseudo instruction expansion pass
174 ; CHECK-NEXT: Insert KCFI indirect call checks
175 ; CHECK-NEXT: MachineDominator Tree Construction
176 ; CHECK-NEXT: Machine Natural Loop Construction
177 ; CHECK-NEXT: PostRA Machine Instruction Scheduler
178 ; CHECK-NEXT: Analyze Machine Code For Garbage Collection
179 ; CHECK-NEXT: Machine Block Frequency Analysis
180 ; CHECK-NEXT: MachinePostDominator Tree Construction
181 ; CHECK-NEXT: Branch Probability Basic Block Placement
182 ; CHECK-NEXT: Insert fentry calls
183 ; CHECK-NEXT: Insert XRay ops
184 ; CHECK-NEXT: Implement the 'patchable-function' attribute
185 ; CHECK-NEXT: Branch relaxation pass
186 ; CHECK-NEXT: RISC-V Make Compressible
187 ; CHECK-NEXT: Machine Copy Propagation Pass
188 ; CHECK-NEXT: Contiguously Lay Out Funclets
189 ; CHECK-NEXT: StackMap Liveness Analysis
190 ; CHECK-NEXT: Live DEBUG_VALUE analysis
191 ; CHECK-NEXT: Machine Sanitizer Binary Metadata
192 ; CHECK-NEXT: Machine Outliner
193 ; CHECK-NEXT: FunctionPass Manager
194 ; CHECK-NEXT: Lazy Machine Block Frequency Analysis
195 ; CHECK-NEXT: Machine Optimization Remark Emitter
196 ; CHECK-NEXT: Stack Frame Layout Analysis
197 ; CHECK-NEXT: RISC-V Zcmp move merging pass
198 ; CHECK-NEXT: RISC-V Zcmp Push/Pop optimization pass
199 ; CHECK-NEXT: RISC-V pseudo instruction expansion pass
200 ; CHECK-NEXT: RISC-V atomic pseudo instruction expansion pass
201 ; CHECK-NEXT: Unpack machine instruction bundles
202 ; CHECK-NEXT: Lazy Machine Block Frequency Analysis
203 ; CHECK-NEXT: Machine Optimization Remark Emitter
204 ; CHECK-NEXT: RISC-V Assembly Printer
205 ; CHECK-NEXT: Free MachineFunction