[PATCH] D64393: [AMDGPU] Fix DPP combiner check for exec modification
Valery Pykhtin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 06:00:26 PDT 2019
vpykhtin added a comment.
Sorry, there is a code for returnining unique instr, so we can use the count:
defusechain_instr_iterator &operator++() { // Preincrement
assert(Op && "Cannot increment end iterator!");
if (ByOperand)
advance();
else if (ByInstr) {
MachineInstr *P = Op->getParent();
do {
advance();
} while (Op && Op->getParent() == P); // <- removes duplicates
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64393/new/
https://reviews.llvm.org/D64393
More information about the llvm-commits
mailing list