forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LoopVectorize: guard marking iv as scalar; fix bug (llvm#88730)
When collecting loop scalars, LoopVectorize over-eagerly marks the induction variable and its update as scalars after vectorization, even if the induction variable update is a first-order recurrence. Guard the process with this check, fixing a crash. Fixes llvm#72969.
- Loading branch information
Showing
2 changed files
with
117 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters