diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2025-04-24 11:14:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-24 11:14:41 +0200 |
commit | 66461dbb3b8d107fae2d50049205ddb8c192049c (patch) | |
tree | 56ed7d195e9780940387eb518dffae54bc10d0c2 /llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp | |
parent | e98a61dc326c1b564461c0ae4fc693be5113d540 (diff) | |
download | llvm-66461dbb3b8d107fae2d50049205ddb8c192049c.zip llvm-66461dbb3b8d107fae2d50049205ddb8c192049c.tar.gz llvm-66461dbb3b8d107fae2d50049205ddb8c192049c.tar.bz2 |
SPIRV: Set NoPHIs property after rewriting them (#136327)
There should be no PHIs after selection, as OpPhi is used
instead. This hopefully avoids errors in #135277.
Diffstat (limited to 'llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp')
-rw-r--r-- | llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp index 6e1c41d..a6482d9 100644 --- a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp +++ b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp @@ -2029,6 +2029,8 @@ static void patchPhis(const Module &M, SPIRVGlobalRegistry *GR, {MachineOperand::CreateReg(ResTypeReg, false)}); } } + + MF->getProperties().set(MachineFunctionProperties::Property::NoPHIs); } } |