[all-commits] [llvm/llvm-project] e7f123: [LV] Move optimized IV recipes to phi section of h...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Wed Nov 10 03:41:35 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e7f1232cb777ac7408c7b4b7f5c421986bad3a82
https://github.com/llvm/llvm-project/commit/e7f1232cb777ac7408c7b4b7f5c421986bad3a82
Author: Florian Hahn <flo at fhahn.com>
Date: 2021-11-10 (Wed, 10 Nov 2021)
Changed paths:
M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
M llvm/test/Transforms/LoopVectorize/induction.ll
Log Message:
-----------
[LV] Move optimized IV recipes to phi section of header after sinking.
Unfortunately sinking recipes for first-order recurrences relies on
the original position of recipes. So if a recipes needs to be sunk after
an optimized induction, it needs to stay in the original position, until
sinking is done. This is causing PR52460.
To fix the crash, keep the recipes in the original position until
sink-after is done.
Post-commit follow-up to c45045bfd04af9 to address PR52460.
More information about the All-commits
mailing list