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) {
23342334}
23352335
23362336bool SIFoldOperandsImpl::run (MachineFunction &MF) {
2337+ MFPropsModifier _ (*this , MF);
2338+
23372339 MRI = &MF.getRegInfo ();
23382340 ST = &MF.getSubtarget <GCNSubtarget>();
23392341 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