[PATCH] D81993: [AArch64][GlobalISel] Add post-legalize combine for sext(trunc(sextload)) -> trunc/copy

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 17 16:44:25 PDT 2020


aemerson updated this revision to Diff 271520.
aemerson retitled this revision from "[AArch64][GlobalISel] Add artifact combine for sext(trunc(sextload)) -> trunc/copy" to "[AArch64][GlobalISel] Add post-legalize combine for sext(trunc(sextload)) -> trunc/copy".
aemerson added a comment.
Herald added a subscriber: hiraditya.

Move the combine to post legalizer, now matching what ends up coming out of the legalizer for AArch64 which is a G_SEXT_INREG.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D81993/new/

https://reviews.llvm.org/D81993

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/Target/AArch64/AArch64Combine.td
  llvm/test/CodeGen/AArch64/GlobalISel/combine-sext-trunc-sextload.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81993.271520.patch
Type: text/x-patch
Size: 6673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200617/f0a402db/attachment.bin>


More information about the llvm-commits mailing list