[llvm] [NVPTX] Don't use stack memory when bitcasting to/from v2i8 (PR #113928)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 07:02:54 PDT 2024
================
@@ -551,6 +551,10 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
setOperationAction(ISD::EXTRACT_VECTOR_ELT, MVT::v4i8, Custom);
setOperationAction(ISD::INSERT_VECTOR_ELT, MVT::v4i8, Custom);
setOperationAction(ISD::VECTOR_SHUFFLE, MVT::v4i8, Custom);
+
+ // Custom conversions to/from v2i8.
+ setOperationAction(ISD::BITCAST, MVT::v2i8, Custom);
----------------
peterbell10 wrote:
No it just results in the same stack usage.
https://github.com/llvm/llvm-project/pull/113928
More information about the llvm-commits
mailing list