[PATCH] D80478: [X86][AVX] Call SimplifyDemandedBits on MaskedLoadSDNode with non-boolean masks

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 23 13:15:31 PDT 2020


RKSimon created this revision.
RKSimon added reviewers: craig.topper, spatel.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

On X86 (AVX1/AVX), non-boolean masked loads only demand the sign bit of the mask., we already do the equivalent for masked stores.

Annoyingly I can't easily handle this inside TargetLowering::SimplifyDemandedBits as this is an x86 specific case for a generic node.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80478

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/masked_load.ll
  llvm/test/CodeGen/X86/pr45563-2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80478.265883.patch
Type: text/x-patch
Size: 13510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200523/a45a9cdd/attachment-0001.bin>


More information about the llvm-commits mailing list