https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89754
Bug ID: 89754 Summary: Vectorizer cost model check should look at evolution of niter in outer loop(s) Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- For the testcase in PR87561 which has a loop nest iterating over a triangle the vectorizer should take the evolution of the inner loop niter in the outer loop into account for cost modeling and compute a cost model check for the outer loop also applying cost model versioning to the outer loop instead of the inner loop.