[llvm] [MachineCSE] Enhance MachineCSE simple PRE to find common subexpressi… (PR #129860)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 8 22:40:43 PST 2025
================
@@ -0,0 +1,126 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
+# RUN: llc -mtriple=amdgcn -run-pass=machine-cse -verify-machineinstrs -o - %s | FileCheck %s
+# RUN: llc -mtriple=amdgcn -passes=machine-cse -o - %s | FileCheck %s
+
+--- |
----------------
emelliu wrote:
https://github.com/llvm/llvm-project/blob/a6ccda28f7569c1a03620d7520de7cfadc11f4a5/llvm/lib/CodeGen/MachineCSE.cpp#L851
Here need MBB->getBasicBlock() is not nullptr, if I delete the block names, how to meet this condition?
https://github.com/llvm/llvm-project/pull/129860
More information about the llvm-commits
mailing list