[llvm] [SPIR-V] Fix some GEP legalization (PR #150943)
Nathan Gauër via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 29 04:55:44 PDT 2025
================
@@ -1395,6 +1521,13 @@ Instruction *SPIRVEmitIntrinsics::visitSwitchInst(SwitchInst &I) {
}
Instruction *SPIRVEmitIntrinsics::visitGetElementPtrInst(GetElementPtrInst &I) {
+ if (I.getSourceElementType() == IntegerType::getInt8Ty(CurrF->getContext()) &&
----------------
Keenuts wrote:
Right, wrote this code before restricting to i8, but now seems better to revisit & simplify it
https://github.com/llvm/llvm-project/pull/150943
More information about the llvm-commits
mailing list