[llvm] [AMDGPU] Fix end() iterator dereference in SILowerSGPRSpills (PR #88828)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 14:25:45 PDT 2024


================
@@ -0,0 +1,1445 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 4
+# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx942 -verify-machineinstrs -run-pass=si-lower-sgpr-spills -o - %s | FileCheck %s
+
+# Test that the si-lower-sgpr-spills pass does not defeference a
+# machine instruction iterator that is equal to end().
+
+---
+name:            empty_spill_block
----------------
arsenm wrote:

This test function is huge. Can you try to use llvm-reduce to cut this down? I can't imagine needing more than a few blocks 

https://github.com/llvm/llvm-project/pull/88828


More information about the llvm-commits mailing list