[PATCH] D85965: [GlobalISel] Add a combine for ashr(shl x, c), c --> sext_inreg x, c'

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


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

By detecting this sign extend pattern early, we can uncover opportunities for more optimizations.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85965

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.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/prelegalizercombiner-ashr-shl-to-sext-inreg.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85965.285616.patch
Type: text/x-patch
Size: 6949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200814/816894c5/attachment.bin>


More information about the llvm-commits mailing list