[llvm] [MachineCSE] Enhance MachineCSE simple PRE to find common subexpressi… (PR #129860)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 5 21:54:58 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:

Here IR section is for defining mir basicblock name, if no bb name, MBB->getBasicBlock() will be nullptr.

https://github.com/llvm/llvm-project/blob/a6ccda28f7569c1a03620d7520de7cfadc11f4a5/llvm/lib/CodeGen/MIRParser/MIParser.cpp#L783



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


More information about the llvm-commits mailing list