[llvm] [NVPTX] Fix crash in libc gpu after db5d845 (PR #65579)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 7 01:02:30 PDT 2023
https://github.com/ThomasRaoux created https://github.com/llvm/llvm-project/pull/65579:
None
>From 755086ef2ee76d8353d6d2c6a8d580c0a56077a6 Mon Sep 17 00:00:00 2001
From: Thomas Raoux <thomas.raoux at openai.com>
Date: Thu, 7 Sep 2023 00:46:32 -0700
Subject: [PATCH] [NVPTX] Fix crash in libc gpu after db5d845
---
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
index 89668611ac9ce3..b11c381158a119 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -586,6 +586,11 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
setTruncStoreAction(VT, MVT::i1, Expand);
}
+ // expand extload of vector of integers.
+ setLoadExtAction({ISD::EXTLOAD, ISD::SEXTLOAD, ISD::ZEXTLOAD}, MVT::v2i16,
+ MVT::v2i8, Expand);
+ setTruncStoreAction(MVT::v2i16, MVT::v2i8, Expand);
+
// This is legal in NVPTX
setOperationAction(ISD::ConstantFP, MVT::f64, Legal);
setOperationAction(ISD::ConstantFP, MVT::f32, Legal);
More information about the llvm-commits
mailing list