[PATCH] D113351: [DAG] Add BuildVectorSDNode::getConstantRawBits helper

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 6 14:21:49 PDT 2021


RKSimon created this revision.
RKSimon added reviewers: lebedev.ri, spatel, craig.topper, pengfei.
Herald added subscribers: ecnelises, hiraditya.
RKSimon requested review of this revision.
Herald added a project: LLVM.

We have several places where we need to extract the raw bits data from a BUILD_VECTOR node, so consolidate this to a single helper function that handles Undefs and Integer/FP constants, including implicit truncation.

This should make it easier to extend D113202 <https://reviews.llvm.org/D113202> to handle more constant folding of bitcasted constant data.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D113351

Files:
  llvm/include/llvm/CodeGen/SelectionDAGNodes.h
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/Target/X86/X86ISelLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113351.385295.patch
Type: text/x-patch
Size: 9304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211106/5cd85e3b/attachment.bin>


More information about the llvm-commits mailing list