[PATCH] D83569: [PowerPC] Fix the killed flag in mi-peephole pass

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 21:08:37 PDT 2020


shchenz added a comment.

Please also add test case for the new scenarios



================
Comment at: llvm/lib/Target/PowerPC/PPCMIPeephole.cpp:1579
+    if (SrcMI->getOperand(0).isKill() ||
+        IsKilledFor(SrcMI->getOperand(0).getReg()))
+      TII->fixupIsDeadOrKill(*SrcMI, MI, SrcMI->getOperand(0).getReg());
----------------
 I think you mean SrcMI->getOperand(1)?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D83569



More information about the llvm-commits mailing list