[PATCH] D39785: [PowerPC] Remove redundant register copies in late peephole

Hiroshi Inoue via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 8 20:57:45 PST 2017


inouehrs added inline comments.


================
Comment at: lib/Target/PowerPC/PPCPreEmitPeephole.cpp:80
+          } else if ((RedundantPairMI = hasRedundantPair(MI))) {
+            InstrsToErase.push_back(RedundantPairMI);
+            NumRedundantPairsFound++;
----------------
Do you eliminate only the second `mr`, not both `mr`s?
We have additional opportunity to erase first `mr` by rewriting uses of r3 with r30.


Repository:
  rL LLVM

https://reviews.llvm.org/D39785





More information about the llvm-commits mailing list