File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1402,9 +1402,9 @@ bool vputils::onlyFirstLaneUsed(const VPValue *Def) {
1402
1402
[Def](const VPUser *U) { return U->onlyFirstLaneUsed (Def); });
1403
1403
}
1404
1404
1405
- bool vputils::onlyFirstPartUsed (VPValue *Def) {
1405
+ bool vputils::onlyFirstPartUsed (const VPValue *Def) {
1406
1406
return all_of (Def->users (),
1407
- [Def](VPUser *U) { return U->onlyFirstPartUsed (Def); });
1407
+ [Def](const VPUser *U) { return U->onlyFirstPartUsed (Def); });
1408
1408
}
1409
1409
1410
1410
VPValue *vputils::getOrCreateVPValueForSCEVExpr (VPlan &Plan, const SCEV *Expr,
Original file line number Diff line number Diff line change @@ -3391,7 +3391,7 @@ namespace vputils {
3391
3391
bool onlyFirstLaneUsed (const VPValue *Def);
3392
3392
3393
3393
// / Returns true if only the first part of \p Def is used.
3394
- bool onlyFirstPartUsed (VPValue *Def);
3394
+ bool onlyFirstPartUsed (const VPValue *Def);
3395
3395
3396
3396
// / Get or create a VPValue that corresponds to the expansion of \p Expr. If \p
3397
3397
// / Expr is a SCEVConstant or SCEVUnknown, return a VPValue wrapping the live-in
You can’t perform that action at this time.
0 commit comments