[llvm] f4cf25e - [NVPTX] Minor cleanups and typo fixes.
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 16:09:10 PST 2022
Author: Artem Belevich
Date: 2022-12-07T16:08:43-08:00
New Revision: f4cf25e53675ab8a44bb5807b6b5342d95600665
URL: https://github.com/llvm/llvm-project/commit/f4cf25e53675ab8a44bb5807b6b5342d95600665
DIFF: https://github.com/llvm/llvm-project/commit/f4cf25e53675ab8a44bb5807b6b5342d95600665.diff
LOG: [NVPTX] Minor cleanups and typo fixes.
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 fc6bd946c252e..0709e8977fc8a 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -191,9 +191,9 @@ static void ComputePTXValueVTs(const TargetLowering &TLI, const DataLayout &DL,
unsigned NumElts = VT.getVectorNumElements();
EVT EltVT = VT.getVectorElementType();
// Vectors with an even number of f16 elements will be passed to
- // us as an array of v2f16 elements. We must match this so we
+ // us as an array of v2f16/v2bf16 elements. We must match this so we
// stay in sync with Ins/Outs.
- if ((EltVT == MVT::f16 || EltVT == MVT::f16) && NumElts % 2 == 0) {
+ if ((EltVT == MVT::f16 || EltVT == MVT::bf16) && NumElts % 2 == 0) {
EltVT = EltVT == MVT::f16 ? MVT::v2f16 : MVT::v2bf16;
NumElts /= 2;
}
@@ -1952,7 +1952,6 @@ NVPTXTargetLowering::LowerCONCAT_VECTORS(SDValue Op, SelectionDAG &DAG) const {
// generates good SASS in both cases.
SDValue NVPTXTargetLowering::LowerBUILD_VECTOR(SDValue Op,
SelectionDAG &DAG) const {
- //return Op;
if (!(Op->getValueType(0) == MVT::v2f16 &&
isa<ConstantFPSDNode>(Op->getOperand(0)) &&
isa<ConstantFPSDNode>(Op->getOperand(1))))
More information about the llvm-commits
mailing list