[PATCH] D32746: [globalisel][legalizer] G_LOAD/G_STORE NarrowScalar should not emit G_GEP x, 0.

Daniel Sanders via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 08:45:29 PDT 2017


dsanders updated this revision to Diff 100253.
dsanders added a comment.
Herald added a subscriber: javed.absar.

Factored out the optimization into MachineIRBuilder.

@qcolombet: Before I commit, I'd just like to double-check that the new
materializeGEP() function in MachineIRBuilder is ok with you. The
materialize*() name is intended to be used for instructions that may have to
create vregs in some cases.


https://reviews.llvm.org/D32746

Files:
  include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
  lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
  test/CodeGen/AArch64/GlobalISel/legalize-load-store.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32746.100253.patch
Type: text/x-patch
Size: 6845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170525/6f566d78/attachment.bin>


More information about the llvm-commits mailing list