[PATCH] D69953: MCP: Fixed bug with dest overlapping copy source
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 02:08:26 PST 2019
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/MachineCopyPropagation.cpp:438-439
+ // cannot cope with that.
+ if (MI.isCopy() && MI.modifiesRegister(CopySrcReg, TRI) &&
+ !MI.definesRegister(CopySrcReg)) {
+ LLVM_DEBUG(dbgs() << "MCP: Copy source overlap with dest in " << MI);
----------------
Maybe should have a partiallyModifiesRegister?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69953/new/
https://reviews.llvm.org/D69953
More information about the llvm-commits
mailing list