[PATCH] D55987: [CodeGen] Skip over dbg-instr in twoaddr pass
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 21 14:09:31 PST 2018
aprantl added inline comments.
================
Comment at: lib/CodeGen/TwoAddressInstructionPass.cpp:932
MachineBasicBlock::iterator End = AfterMI;
- while (End->isCopy() &&
- regOverlapsSet(Defs, End->getOperand(1).getReg(), TRI)) {
- Defs.push_back(End->getOperand(0).getReg());
+ while (End->isDebugInstr() ||
+ (End->isCopy() &&
----------------
For IR we have an iterator that skips over debug intrinsics automatically. Does the same thing exist for MIR, too?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55987/new/
https://reviews.llvm.org/D55987
More information about the llvm-commits
mailing list