[PATCH] D78254: [CombinerHelper] Fix missed ElideBrByInvertingCond combine
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 15 18:14:23 PDT 2020
aemerson added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:645
MachineInstr *AddrDef = getOpcodeDef(TargetOpcode::G_PTR_ADD, Addr, MRI);
- if (!AddrDef || MRI.hasOneUse(Addr))
+ if (!AddrDef || MRI.hasOneNonDBGUse(Addr))
return false;
----------------
This looks like an unrelated fix?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78254/new/
https://reviews.llvm.org/D78254
More information about the llvm-commits
mailing list