Skip to content

Commit 61b0078

Browse files
committed
[𝘀𝗽𝗿] changes introduced through rebase
Created using spr 1.3.6-beta.1 [skip ci]
1 parent 45819b7 commit 61b0078

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16212,12 +16212,14 @@ static SDValue performSETCCCombine(SDNode *N, SelectionDAG &DAG,
1621216212
EVT VT = N->getValueType(0);
1621316213
EVT OpVT = N0.getValueType();
1621416214

16215-
// Looking for an equality compare.
1621616215
ISD::CondCode Cond = cast<CondCodeSDNode>(N->getOperand(2))->get();
16217-
if (ISD::isIntEqualitySetCC(Cond))
16218-
if (SDValue V = combineVectorSizedSetCCEquality(VT, N0, N1, Cond, dl, DAG,
16219-
Subtarget))
16220-
return V;
16216+
// Looking for an equality compare.
16217+
if (!isIntEqualitySetCC(Cond))
16218+
return SDValue();
16219+
16220+
if (SDValue V =
16221+
combineVectorSizedSetCCEquality(VT, N0, N1, Cond, dl, DAG, Subtarget))
16222+
return V;
1622116223

1622216224
if (OpVT != MVT::i64 || !Subtarget.is64Bit())
1622316225
return SDValue();
@@ -16233,9 +16235,6 @@ static SDValue performSETCCCombine(SDNode *N, SelectionDAG &DAG,
1623316235
N0.getConstantOperandVal(1) != UINT64_C(0xffffffff))
1623416236
return SDValue();
1623516237

16236-
if (!isIntEqualitySetCC(Cond))
16237-
return SDValue();
16238-
1623916238
// Don't do this if the sign bit is provably zero, it will be turned back into
1624016239
// an AND.
1624116240
APInt SignMask = APInt::getOneBitSet(64, 31);

llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2953,7 +2953,7 @@ RISCVTTIImpl::enableMemCmpExpansion(bool OptSize, bool IsZeroCmp) const {
29532953
Options.AllowedTailExpansions = {3};
29542954
}
29552955

2956-
if (IsZeroCmp && ST->hasVInstructions() && ST->enableUnalignedVectorMem()) {
2956+
if (IsZeroCmp && ST->hasVInstructions()) {
29572957
unsigned RealMinVLen = ST->getRealMinVLen();
29582958
// Support Fractional LMULs if the lengths are larger than XLen.
29592959
// TODO: Support non-power-of-2 types.

0 commit comments

Comments
 (0)