[llvm] [CodeGen][NFC] Guard copy propagation in machine CSE against undefs (PR #97413)

Vikram Hegde via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 7 23:26:26 PDT 2024


================
@@ -0,0 +1,21 @@
+# RUN: llc -mtriple=amdgcn -run-pass=machine-cse -verify-machineinstrs -o - %s | FileCheck %s
+
+# Test to ensure that this does not crash on undefs
+# CHECK-LABEL: name: machine-cse-copyprop
+# CHECK: IMPLICIT_DEF
+# CHECK-NOT: COPY
----------------
vikramRH wrote:

Done

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


More information about the llvm-commits mailing list