[PATCH] D65267: [MachineCopyPropagation] Remove redundant copies after TailDup via machine-cp

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 16 20:05:57 PDT 2019


lkail requested review of this revision.
lkail marked an inline comment as done.
lkail added inline comments.


================
Comment at: llvm/lib/CodeGen/MachineCopyPropagation.cpp:300
+    return false;
+  if (Copy.getNumOperands() != 2 || !Copy.getOperand(1).isRenamable() ||
+      !Copy.getOperand(1).isKill())
----------------
Added check of non-trivial copy.


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

https://reviews.llvm.org/D65267





More information about the llvm-commits mailing list