aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorBrandon Wu <brandon.wu@sifive.com>2024-08-31 19:02:35 +0800
committerGitHub <noreply@github.com>2024-08-31 19:02:35 +0800
commitdb67a66e8e02b565b135544e5c9b0bb0cf2f2437 (patch)
treeb211d9a0b3e9df1eae9b9432f0b0ef6dd301920d /llvm/lib/CodeGen/TargetLoweringBase.cpp
parentdc03ee3cbba65356de62f2f27fb1934b2731000d (diff)
downloadllvm-db67a66e8e02b565b135544e5c9b0bb0cf2f2437.zip
llvm-db67a66e8e02b565b135544e5c9b0bb0cf2f2437.tar.gz
llvm-db67a66e8e02b565b135544e5c9b0bb0cf2f2437.tar.bz2
Revert "[RISCV] RISCV vector calling convention (2/2)" (#97994)
This reverts commit 91dd844aa499d69c7ff75bf3156e2e3593a88057. Stacked on https://github.com/llvm/llvm-project/pull/97993
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 35d6304..eb3190c 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -1682,16 +1682,8 @@ void llvm::GetReturnInfo(CallingConv::ID CC, Type *ReturnType,
else if (attr.hasRetAttr(Attribute::ZExt))
Flags.setZExt();
- for (unsigned i = 0; i < NumParts; ++i) {
- ISD::ArgFlagsTy OutFlags = Flags;
- if (NumParts > 1 && i == 0)
- OutFlags.setSplit();
- else if (i == NumParts - 1 && i != 0)
- OutFlags.setSplitEnd();
-
- Outs.push_back(
- ISD::OutputArg(OutFlags, PartVT, VT, /*isfixed=*/true, 0, 0));
- }
+ for (unsigned i = 0; i < NumParts; ++i)
+ Outs.push_back(ISD::OutputArg(Flags, PartVT, VT, /*isfixed=*/true, 0, 0));
}
}