File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -2334,6 +2334,8 @@ bool SIFoldOperandsImpl::tryOptimizeAGPRPhis(MachineBasicBlock &MBB) {
2334
2334
}
2335
2335
2336
2336
bool SIFoldOperandsImpl::run (MachineFunction &MF) {
2337
+ MFPropsModifier _ (*this , MF);
2338
+
2337
2339
MRI = &MF.getRegInfo ();
2338
2340
ST = &MF.getSubtarget <GCNSubtarget>();
2339
2341
TII = ST->getInstrInfo ();
Original file line number Diff line number Diff line change
1
+ # RUN: not --crash llc -mtriple=amdgcn -mcpu=gfx900 -run-pass=si-fold-operands -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
2
+ # RUN: not --crash llc -mtriple=amdgcn -mcpu=gfx900 -passes=si-fold-operands -filetype=null %s 2>&1 | FileCheck -check-prefix=ERR %s
3
+
4
+ # ERR: MachineFunctionProperties required by SI Fold Operands pass are not met by function not_ssa.
5
+ # ERR-NEXT: Required properties: IsSSA
6
+ # ERR-NEXT: Current properties: NoPHIs
7
+ ---
8
+ name : not_ssa
9
+ body : |
10
+ bb.0:
11
+ liveins: $vgpr0, $vgpr1
12
+ %0:vgpr_32 = COPY $vgpr0
13
+ %0:vgpr_32 = COPY $vgpr1
14
+
15
+ ...
You can’t perform that action at this time.
0 commit comments