[llvm] [InstCombine] Avoid crash on aggregate types in SimplifyDemandedUseFPClass (PR #111128)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 03:29:04 PDT 2024
================
@@ -91,6 +91,35 @@ define nofpclass(inf) float @ret_nofpclass_inf__ninf() {
ret float 0xFFF0000000000000
}
+; Basic aggregate tests to ensure this does not crash.
+define nofpclass(nan) { float } @ret_nofpclass_struct_ty() {
+; CHECK-LABEL: define nofpclass(nan) { float } @ret_nofpclass_struct_ty() {
+; CHECK-NEXT: entry:
+; CHECK-NEXT: ret { float } zeroinitializer
+;
+entry:
+ ret { float } zeroinitializer
----------------
arsenm wrote:
Test double element and struct of vector
https://github.com/llvm/llvm-project/pull/111128
More information about the llvm-commits
mailing list