[PATCH] D35014: [X86] PR32755 : Improvement in CodeGen instruction selection for LEAs.

Jatin Bhateja via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 14 11:25:51 PDT 2017


jbhateja added inline comments.


================
Comment at: include/llvm/CodeGen/MachineInstr.h:1291
   /// return null.
   MachineRegisterInfo *getRegInfo();
+private:
----------------
qcolombet wrote:
> Genuine question.
> MRI is usually accessibly via other more efficient means.
> Do we really need to rely on this one?
It seems making it public will be useful as one can directly use the function which internally
calls getParent() twice to get to MachineFunction which contains Reg Info.


https://reviews.llvm.org/D35014





More information about the llvm-commits mailing list