Skip to content

Commit 9ce811e

Browse files
committed
Fixups
1 parent 6857792 commit 9ce811e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

llvm/lib/CodeGen/ValueTypes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Type *EVT::getTypeForEVT(LLVMContext &Context) const {
224224
case MVT::aarch64svcount:
225225
return TargetExtType::get(Context, "aarch64.svcount");
226226
case MVT::aarch64mfp8:
227-
return VectorType::get(IntegerType::get(Context, 8), ElementCount::getFixed(1));
227+
return FixedVectorType::get(IntegerType::get(Context, 8), 1);
228228
case MVT::x86amx: return Type::getX86_AMXTy(Context);
229229
case MVT::i64x8: return IntegerType::get(Context, 512);
230230
case MVT::amdgpuBufferFatPointer: return IntegerType::get(Context, 160);

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24036,13 +24036,12 @@ static SDValue performSTORECombine(SDNode *N,
2403624036
if ((!ExtCst || !ExtCst->isZero()) && !Value.hasOneUse())
2403724037
return SDValue();
2403824038

24039+
// These can lower to st1, which is preferable if we're unlikely to fold the
24040+
// addressing into the store.
2403924041
if (Subtarget->isNeonAvailable() && ElemVT == MemVT &&
2404024042
(VectorVT.is64BitVector() || VectorVT.is128BitVector()) && ExtCst &&
24041-
!ExtCst->isZero() && ST->getBasePtr().getOpcode() != ISD::ADD) {
24042-
// These can lower to st1, which is preferable if we're unlikely to fold
24043-
// the addressing into the store.
24043+
!ExtCst->isZero() && ST->getBasePtr().getOpcode() != ISD::ADD)
2404424044
return SDValue();
24045-
}
2404624045

2404724046
if (MemVT == MVT::i64 || MemVT == MVT::i32) {
2404824047
// Heuristic: If there are other users of w/x integer scalars extracted
@@ -24066,10 +24065,11 @@ static SDValue performSTORECombine(SDNode *N,
2406624065
Value.getValueType(), Vector, ExtIdx);
2406724066
// FIXME: Using a fixed-size vector for the insertion should not be
2406824067
// necessary, but SVE ISEL is missing some folds to avoid fmovs.
24069-
SDValue Zero = DAG.getConstant(0, DL, MVT::i64);
24068+
SDValue Zero = DAG.getVectorIdxConstant(0, DL);
2407024069
EVT InsertVectorVT = EVT::getVectorVT(
2407124070
*DAG.getContext(), ElemVT,
24072-
VectorVT.getVectorElementCount().getKnownMinValue(), false);
24071+
ElementCount::getFixed(
24072+
VectorVT.getVectorElementCount().getKnownMinValue()));
2407324073
ExtVector = DAG.getNode(ISD::INSERT_VECTOR_ELT, DL, InsertVectorVT,
2407424074
DAG.getUNDEF(InsertVectorVT), Ext, Zero);
2407524075
}

llvm/lib/Target/AArch64/AArch64InstrInfo.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4604,8 +4604,8 @@ def : Pat<(truncstorei8 GPR64:$Rt, (am_unscaled8 GPR64sp:$Rn, simm9:$offset)),
46044604
// aarch64mfp8 (bsub) stores
46054605
def : Pat<(store aarch64mfp8:$Rt, (am_unscaled8 GPR64sp:$Rn, simm9:$offset)),
46064606
(STURBi FPR8:$Rt, GPR64sp:$Rn, simm9:$offset)>;
4607-
def : Pat<(store aarch64mfp8:$Rt, (am_indexed8 GPR64sp:$Rn, uimm12s4:$offset)),
4608-
(STRBui FPR8:$Rt, GPR64sp:$Rn, uimm12s4:$offset)>;
4607+
def : Pat<(store aarch64mfp8:$Rt, (am_indexed8 GPR64sp:$Rn, uimm12s1:$offset)),
4608+
(STRBui FPR8:$Rt, GPR64sp:$Rn, uimm12s1:$offset)>;
46094609

46104610
// Match stores from lane 0 to the appropriate subreg's store.
46114611
multiclass VecStoreULane0Pat<SDPatternOperator StoreOp,

0 commit comments

Comments
 (0)