[PATCH] D73435: [ValueTracking] Add DemandedElts support to computeKnownBits/ComputeNumSignBits (PR36319)
    Simon Pilgrim via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Jan 26 11:28:24 PST 2020
    
    
  
RKSimon created this revision.
RKSimon added reviewers: spatel, lebedev.ri, efriedma, nikic, jdoerfert.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
This patch adds initial support for a DemandedElts mask to the internal computeKnownBits/ComputeNumSignBits methods, matching the SelectionDAG and GlobalISel equivalents.
So far only a couple of instructions have been setup to handle the DemandedElts, the remainder still using the existing 'all elements' default. The plan is to extend support as we have test coverage.
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D73435
Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/test/Transforms/InstCombine/nsw.ll
  llvm/test/Transforms/InstCombine/shift-add.ll
  llvm/test/Transforms/LoopVectorize/X86/small-size.ll
  llvm/test/Transforms/LoopVectorize/X86/x86-interleaved-accesses-masked-group.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73435.240450.patch
Type: text/x-patch
Size: 21133 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200126/36b2aadb/attachment.bin>
    
    
More information about the llvm-commits
mailing list