Skip to content

Commit c16ee04

Browse files
committed
Remove ptrue check and brackets
1 parent de53aae commit c16ee04

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,10 +1492,6 @@ static bool isAllActivePredicate(Value *Pred) {
14921492
if (cast<ScalableVectorType>(Pred->getType())->getMinNumElements() <=
14931493
cast<ScalableVectorType>(UncastedPred->getType())->getMinNumElements())
14941494
Pred = UncastedPred;
1495-
if (match(Pred, m_Intrinsic<Intrinsic::aarch64_sve_ptrue>(
1496-
m_ConstantInt<AArch64SVEPredPattern::all>())))
1497-
return true;
1498-
14991495
auto *C = dyn_cast<Constant>(Pred);
15001496
return (C && C->isAllOnesValue());
15011497
}
@@ -2638,9 +2634,8 @@ static std::optional<Instruction *> instCombineDMB(InstCombiner &IC,
26382634

26392635
static std::optional<Instruction *> instCombinePTrue(InstCombiner &IC,
26402636
IntrinsicInst &II) {
2641-
if (match(II.getOperand(0), m_ConstantInt<AArch64SVEPredPattern::all>())) {
2637+
if (match(II.getOperand(0), m_ConstantInt<AArch64SVEPredPattern::all>()))
26422638
return IC.replaceInstUsesWith(II, Constant::getAllOnesValue(II.getType()));
2643-
}
26442639
return std::nullopt;
26452640
}
26462641

0 commit comments

Comments
 (0)