mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
Replace std::vector with SmallVector for some small, known size vectors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72c93595de
commit
86d321f9d1
@ -1070,7 +1070,7 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
|
||||
|
||||
if (NumElts == 1) {
|
||||
// Just a simple load
|
||||
std::vector<EVT> LoadRetVTs;
|
||||
SmallVector<EVT, 4> LoadRetVTs;
|
||||
if (needTruncate) {
|
||||
// If loading i1 result, generate
|
||||
// load i16
|
||||
@ -1080,7 +1080,7 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
|
||||
LoadRetVTs.push_back(EltVT);
|
||||
LoadRetVTs.push_back(MVT::Other);
|
||||
LoadRetVTs.push_back(MVT::Glue);
|
||||
std::vector<SDValue> LoadRetOps;
|
||||
SmallVector<SDValue, 4> LoadRetOps;
|
||||
LoadRetOps.push_back(Chain);
|
||||
LoadRetOps.push_back(DAG.getConstant(1, MVT::i32));
|
||||
LoadRetOps.push_back(DAG.getConstant(0, MVT::i32));
|
||||
@ -1096,7 +1096,7 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
|
||||
InVals.push_back(Ret0);
|
||||
} else if (NumElts == 2) {
|
||||
// LoadV2
|
||||
std::vector<EVT> LoadRetVTs;
|
||||
SmallVector<EVT, 4> LoadRetVTs;
|
||||
if (needTruncate) {
|
||||
// If loading i1 result, generate
|
||||
// load i16
|
||||
@ -1109,7 +1109,7 @@ SDValue NVPTXTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
|
||||
}
|
||||
LoadRetVTs.push_back(MVT::Other);
|
||||
LoadRetVTs.push_back(MVT::Glue);
|
||||
std::vector<SDValue> LoadRetOps;
|
||||
SmallVector<SDValue, 4> LoadRetOps;
|
||||
LoadRetOps.push_back(Chain);
|
||||
LoadRetOps.push_back(DAG.getConstant(1, MVT::i32));
|
||||
LoadRetOps.push_back(DAG.getConstant(0, MVT::i32));
|
||||
|
Loading…
x
Reference in New Issue
Block a user