[PATCH] D30835: [DebugInfo][X86] Teach Optimize LEAs pass to handle debug values
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 17 09:13:58 PDT 2017
dblaikie accepted this revision.
dblaikie added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/Target/X86/X86OptimizeLEAs.cpp:567-568
+ unsigned LastVReg = Last.getOperand(0).getReg();
+ for (auto UI = MRI->use_nodbg_begin(LastVReg),
+ UE = MRI->use_nodbg_end();
UI != UE;) {
----------------
I think you can use:
for (MachineOperand &MO : MRI->use_nodbg_operands(LastVReg))
here, probably?
https://reviews.llvm.org/D30835
More information about the llvm-commits
mailing list