[all-commits] [llvm/llvm-project] f60d3e: [DAG] Add BuildVectorSDNode::getConstantRawBits he...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Nov 8 04:07:55 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f60d3ec0c7fd324bccf2275c8f28c390b2b5f069
      https://github.com/llvm/llvm-project/commit/f60d3ec0c7fd324bccf2275c8f28c390b2b5f069
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-11-08 (Mon, 08 Nov 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/SelectionDAGNodes.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [DAG] Add BuildVectorSDNode::getConstantRawBits helper

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 to handle more constant folding of bitcasted constant data.

Differential Revision: https://reviews.llvm.org/D113351




More information about the All-commits mailing list