[llvm] [AMDGPU] Fix s_buffer_load crash for illegal result types (PR #215483)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 02:41:27 PDT 2026
================
@@ -93,6 +93,12 @@ static unsigned findFirstFreeSGPR(CCState &CCInfo) {
llvm_unreachable("Cannot allocate sgpr");
}
+// Marked Custom for s_buffer_load alone. The action applies to the whole
+// opcode, so ReplaceNodeResults must not divert other intrinsics returning one
+// of these types.
+static constexpr MVT SBufferLoadOnlyChainTypes[] = {MVT::i1, MVT::i4, MVT::v2i1,
+ MVT::v6i8};
----------------
aobolensk wrote:
Reworked
https://github.com/llvm/llvm-project/pull/215483
More information about the llvm-commits
mailing list