[PATCH] D137635: [CodeGen] Add sources to isVectorClearMaskLegal. NFC.

Han-Kuan Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 05:21:42 PST 2022


HanKuanChen created this revision.
HanKuanChen added reviewers: spatel, craig.topper, dmgreen, RKSimon.
Herald added subscribers: ctetreau, StephenFan, ecnelises, pengfei, hiraditya, kristof.beyls, tschuett.
Herald added a project: All.
HanKuanChen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Targets may require source information to know whether a mask is legal.
(e.g., whether sources are from a same vector). But current
isVectorClearMaskLegal only provides mask and value type, which is not
enough.

Because DAG.getBitcast may add use number of operand (which blocks some
optimization), we will remove the bitcast node if the node is not used.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137635

Files:
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137635.473964.patch
Type: text/x-patch
Size: 6149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221108/f898154d/attachment.bin>


More information about the llvm-commits mailing list