[PATCH] D54069: [X86] Add vector shift by immediate to SimplifyDemandedBitsForTargetNode.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 2 23:19:20 PDT 2018


craig.topper created this revision.
craig.topper added reviewers: RKSimon, spatel.

This also enables some constant folding from KnownBits propagation. This helps on some cases vXi64 case in 32-bit mode where constant vectors appear as vXi32 and a bitcast. This can prevent getNode from constant folding sra/shl/srl.


Repository:
  rL LLVM

https://reviews.llvm.org/D54069

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/combine-srl.ll
  test/CodeGen/X86/combine-udiv.ll
  test/CodeGen/X86/known-signbits-vector.ll
  test/CodeGen/X86/pr35918.ll
  test/CodeGen/X86/vector-shift-ashr-128.ll
  test/CodeGen/X86/vector-shift-ashr-256.ll
  test/CodeGen/X86/vector-trunc-usat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54069.172484.patch
Type: text/x-patch
Size: 24967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181103/aa7b5bdb/attachment.bin>


More information about the llvm-commits mailing list