[PATCH] D35014: [X86] PR32755 : Improvement in CodeGen instruction selection for LEAs.
Lama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 05:19:41 PDT 2017
lsaba added inline comments.
================
Comment at: lib/Target/X86/X86OptimizeLEAs.cpp:258
+ MachineInstr *MI1 = MRI->getVRegDef(MO1.getReg());
+ MachineInstr *MI2 = MRI->getVRegDef(MO2.getReg());
+ if (!MI1 || !MI2)
----------------
need to check MO2.isReg()
https://reviews.llvm.org/D35014
More information about the llvm-commits
mailing list