[PATCH] D126754: [MachineSink] Clear kill flags on operands outside loop

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 16 14:11:03 PDT 2022


MatzeB added inline comments.


================
Comment at: llvm/lib/CodeGen/MachineSink.cpp:1294
+  for (MachineOperand &MO : I.operands()) {
+    if (MO.isReg() && MO.isUse())
+      RegsToClearKillFlags.insert(MO.getReg());
----------------
Change this to `MO.readsReg()` As we don't need to deal with things like undef uses or internal bundle reads.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126754



More information about the llvm-commits mailing list