[llvm] Nvptx port LowerBITCAST to SelectionDAG (PR #120903)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 23 00:08:17 PST 2024


================
@@ -2619,7 +2595,7 @@ NVPTXTargetLowering::LowerOperation(SDValue Op, SelectionDAG &DAG) const {
   case ISD::BUILD_VECTOR:
     return LowerBUILD_VECTOR(Op, DAG);
   case ISD::BITCAST:
-    return LowerBITCAST(Op, DAG);
+    return SDValue();
----------------
RKSimon wrote:

DAGTypeLegalizer::ExpandRes_BITCAST already does what you're after (expand bitcast of vector to scalar integer) in a more general form - maybe start there?

https://github.com/llvm/llvm-project/pull/120903


More information about the llvm-commits mailing list