Skip to content

Commit 027c462

Browse files
committed
Store SE in var
1 parent a4aa19e commit 027c462

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,11 +1827,12 @@ static bool simplifyKnownEVL(VPlan &Plan, ElementCount VF,
18271827
if (!match(&R, m_EVL(m_VPValue(AVL))))
18281828
continue;
18291829

1830-
const SCEV *AVLSCEV = vputils::getSCEVExprForVPValue(AVL, *PSE.getSE());
1830+
ScalarEvolution &SE = *PSE.getSE();
1831+
const SCEV *AVLSCEV = vputils::getSCEVExprForVPValue(AVL, SE);
18311832
if (isa<SCEVCouldNotCompute>(AVLSCEV))
18321833
continue;
1833-
const SCEV *VFSCEV = PSE.getSE()->getElementCount(AVLSCEV->getType(), VF);
1834-
if (!PSE.getSE()->isKnownPredicate(CmpInst::ICMP_ULE, AVLSCEV, VFSCEV))
1834+
const SCEV *VFSCEV = SE.getElementCount(AVLSCEV->getType(), VF);
1835+
if (!SE.isKnownPredicate(CmpInst::ICMP_ULE, AVLSCEV, VFSCEV))
18351836
continue;
18361837

18371838
VPBuilder Builder(&R);

0 commit comments

Comments
 (0)