Skip to content

Commit 76f6ab8

Browse files
committed
SPIRV: Set NoPHIs property after rewriting them
There should be no PHIs after selection, as OpPhi is used instead. This hopefully avoids errors in #135277.
1 parent 5529880 commit 76f6ab8

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)