Skip to content

Commit 66461db

Browse files
authored
SPIRV: Set NoPHIs property after rewriting them (llvm#136327)
There should be no PHIs after selection, as OpPhi is used instead. This hopefully avoids errors in llvm#135277.
1 parent e98a61d commit 66461db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,6 +2029,8 @@ static void patchPhis(const Module &M, SPIRVGlobalRegistry *GR,
20292029
{MachineOperand::CreateReg(ResTypeReg, false)});
20302030
}
20312031
}
2032+
2033+
MF->getProperties().set(MachineFunctionProperties::Property::NoPHIs);
20322034
}
20332035
}
20342036

0 commit comments

Comments
 (0)