[PATCH] D77300: [X86] Improve combineVectorShiftImm

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 2 05:56:13 PDT 2020


foad created this revision.
foad added reviewers: RKSimon, craig.topper.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
foad added a child revision: D77301: [TargetLowering] Improve expansion of FSHL/FSHR.

Fold (shift (shift X, C2), C1) -> (shift X, (C1 + C2)) for logical as
well as arithmetic shifts. This is needed to prevent regressions from
an upcoming funnel shift expansion change.

While we're here, fold (VSRAI -1, C) -> -1 too.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77300

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/midpoint-int-vec-128.ll
  llvm/test/CodeGen/X86/midpoint-int-vec-256.ll
  llvm/test/CodeGen/X86/midpoint-int-vec-512.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77300.254495.patch
Type: text/x-patch
Size: 128528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200402/c38d2152/attachment-0001.bin>


More information about the llvm-commits mailing list