aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2025-04-24 11:14:41 +0200
committerGitHub <noreply@github.com>2025-04-24 11:14:41 +0200
commit66461dbb3b8d107fae2d50049205ddb8c192049c (patch)
tree56ed7d195e9780940387eb518dffae54bc10d0c2 /llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
parente98a61dc326c1b564461c0ae4fc693be5113d540 (diff)
downloadllvm-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.cpp2
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);
}
}