[llvm] [RegisterPressure] Remove dead defs correctly (PR #156576)

Hongyu Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 9 03:19:59 PDT 2025


================
@@ -477,17 +477,17 @@ class RegisterOperandsCollector {
       collectOperand(*OperI);
 
     // Remove redundant physreg dead defs.
-    for (const VRegMaskOrUnit &P : RegOpers.Defs)
-      removeRegLanes(RegOpers.DeadDefs, P);
+    for (const VRegMaskOrUnit &P : RegOpers.DeadDefs)
----------------
XChy wrote:

Hmm, is there a specification about the order of definitions in a specific instruction? I am confused by such a fact. Do you have any advice on it? Thanks for any information.

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


More information about the llvm-commits mailing list