[llvm] [VPlan] Model initial header mask as region value. (PR #196199)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun May 24 13:13:53 PDT 2026
================
@@ -51,6 +51,10 @@ VPValue *vputils::getOrCreateVPValueForSCEVExpr(VPlan &Plan, const SCEV *Expr) {
}
bool vputils::isHeaderMask(const VPValue *V, const VPlan &Plan) {
----------------
fhahn wrote:
Agreed that would be good. The main question/challenge is how to handle cost modeling. We recently started to cost the compares of the wide header mask, which gives more accurate costs. Expanding before costing makes it easier to compute the cost.
To compute the cost of the header mask going forward without expansion, we would need at least the style.
https://github.com/llvm/llvm-project/pull/196199
More information about the llvm-commits
mailing list