[llvm] b6e19b3 - [NVPTX] Fix crash in libc gpu after db5d845 (#65579)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 7 01:06:31 PDT 2023
Author: Thomas
Date: 2023-09-07T01:06:27-07:00
New Revision: b6e19b35cd87f3167a0f04a61a12016b935ab1ea
URL: https://github.com/llvm/llvm-project/commit/b6e19b35cd87f3167a0f04a61a12016b935ab1ea
DIFF: https://github.com/llvm/llvm-project/commit/b6e19b35cd87f3167a0f04a61a12016b935ab1ea.diff
LOG: [NVPTX] Fix crash in libc gpu after db5d845 (#65579)
Added:
Modified:
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
Removed:
################################################################################
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