[PATCH] D54679: [TargetLowering] Improve SimplifyDemandedVectorElts/SimplifyDemandedBits support

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 18 15:10:27 PST 2018


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

For bitcast nodes from larger element types, add the ability for SimplifyDemandedVectorElts to call SimplifyDemandedBits by merging the elts mask to a bits mask.

I've raised https://bugs.llvm.org/show_bug.cgi?id=39689 to deal with the few places where SimplifyDemandedBits's lack of vector handling is a problem.


Repository:
  rL LLVM

https://reviews.llvm.org/D54679

Files:
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  test/CodeGen/X86/known-bits-vector.ll
  test/CodeGen/X86/known-signbits-vector.ll
  test/CodeGen/X86/reduce-trunc-shl.ll
  test/CodeGen/X86/shrink_vmul.ll
  test/CodeGen/X86/vector-trunc-math-widen.ll
  test/CodeGen/X86/vector-trunc-math.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54679.174546.patch
Type: text/x-patch
Size: 35032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181118/c28b1caf/attachment.bin>


More information about the llvm-commits mailing list