[PATCH] D61735: [llvm] X86DiscriminateMemOps: insert debug info when missing
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 16:20:34 PDT 2019
davidxl added inline comments.
================
Comment at: llvm/lib/Target/X86/X86DiscriminateMemOps.cpp:117
continue;
const DILocation *DI = MI.getDebugLoc();
if (!DI) {
----------------
add a flag here: bool hasDebug = true;
if (!DI) {
hasDebug = false;
DI = ReferencedDI;
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61735/new/
https://reviews.llvm.org/D61735
More information about the llvm-commits
mailing list