[PATCH] D137140: [SDAG] Allow scalable vectors in ComputeKnownBits

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 01:24:33 PST 2022


dmgreen added a comment.

Can you check if it helps to add an implementation of isTargetCanonicalConstantNode for hexagon? It looks like CONCAT is needed, and maybe some other nodes like bitcasts.

  bool HexagonTargetLowering::isTargetCanonicalConstantNode(SDValue Op) const {
    return Op.getOpcode() == ISD::CONCAT_VECTORS ||
           TargetLowering::isTargetCanonicalConstantNode(Op);
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137140/new/

https://reviews.llvm.org/D137140



More information about the llvm-commits mailing list