[llvm] [GlobalISel] Fix crash in matchCombineInsertVecElts with INLINEASM-de… (PR #208225)

Nathan Corbyn via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 00:31:03 PDT 2026


================
@@ -311,3 +311,31 @@ body:             |
     RET_ReallyLR
 
 ...
+---
+name:            test_inlineasm_base
+alignment:       4
+legalized:       false
+regBankSelected: false
+selected:        false
+tracksRegLiveness: true
+body:             |
+  bb.0:
+    ; Regression test for CombinerHelper::matchCombineInsertVecElts.
+    ; The base vector of G_INSERT_VECTOR_ELT is defined by INLINEASM. The combiner
+    ; must stop at INLINEASM and not assume that operand 0 is a register.
----------------
cofibrant wrote:

This comment is probably ok to drop? 

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


More information about the llvm-commits mailing list