[PATCH] D156999: [Inline Spiller] Consider bundles when marking defs as dead

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 08:50:07 PDT 2023


arsenm added inline comments.


================
Comment at: llvm/lib/CodeGen/InlineSpiller.cpp:768
+          bool IsCopyToDeadReg = TII.isCopyInstr(*It) &&
+                                 It->getOperand(0).isReg() &&
+                                 It->getOperand(0).getReg() == Reg;
----------------
You need to check the outputs from isCopyInstr, it's not a boolean and you can't expect the operand indexes 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156999/new/

https://reviews.llvm.org/D156999



More information about the llvm-commits mailing list