[llvm] [AMDGPU] Handle CreateBinOp not returning BinaryOperator (PR #137791)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 05:37:45 PDT 2025
================
@@ -10094,3 +10094,12 @@ define i64 @udiv_i64_9divbits(i8 %size) {
%div = udiv i64 %num, 10
ret i64 %div
}
+
+define void @srem_zero_zero() {
+; GCN-LABEL: kernel:
+; GCN: ; %bb.0: ; %entry
+; GCN-NEXT: s_endpgm
+entry:
+ %B = srem <32 x i64> zeroinitializer, zeroinitializer
+ ret void
+}
----------------
arsenm wrote:
Need to make this not-dead code and use return value. Also can shrink this to a reasonable vector size, like 2 x
https://github.com/llvm/llvm-project/pull/137791
More information about the llvm-commits
mailing list