[all-commits] [llvm/llvm-project] c0a6b4: [CodeGen] Avoid quadratic operand removal in Machi...

简 via All-commits all-commits at lists.llvm.org
Tue Sep 8 14:12:15 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c0a6b4bee96cc2c81716c5238c453ca68fee8042
      https://github.com/llvm/llvm-project/commit/c0a6b4bee96cc2c81716c5238c453ca68fee8042
  Author: 简 <32090825+LittleJianCH at users.noreply.github.com>
  Date:   2026-09-08 (Tue, 08 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/MachineInstr.cpp

  Log Message:
  -----------
  [CodeGen] Avoid quadratic operand removal in MachineInstr::insert (#220165)

This optimizes MachineInstr::insert by copying trailing operands
first and then removing them from the end. This avoids repeatedly
shifting the remaining operands, reducing the operation from quadratic
to linear time without changing behavior.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list