[PATCH] D85966: [GlobalISel] Add a combine for sext_inreg(load x), c --> sextload x

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 03:26:25 PDT 2020


aemerson created this revision.
aemerson added reviewers: paquette, arsenm.
Herald added subscribers: jfb, hiraditya, kristof.beyls, rovka.
Herald added a project: LLVM.
aemerson requested review of this revision.
Herald added a subscriber: wdng.

This is restricted to single use loads, which if we fold to sextloads we can find more optimal addressing modes on AArch64.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85966

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-sextload-from-sextinreg.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85966.285617.patch
Type: text/x-patch
Size: 8426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200814/477a82a2/attachment.bin>


More information about the llvm-commits mailing list