Use a real vector IV for integer IVs that are the same type as the primary, and have a constant step - but are not necessarily the primary IV itself.
This is an expansion of http://reviews.llvm.org/rL271410
Paths
| Differential D20932
[LV] Use vector vphis for more induction variables ClosedPublic Authored by mkuper on Jun 2 2016, 2:41 PM.
Details Summary Use a real vector IV for integer IVs that are the same type as the primary, and have a constant step - but are not necessarily the primary IV itself. This is an expansion of http://reviews.llvm.org/rL271410
Diff Detail Event Timelinemkuper updated this object.
Comment Actions Thanks, Elena!
Closed by commit rL272283: [LV] Use vector phis for some secondary induction variables (authored by mkuper). · Explain WhyJun 9 2016, 11:09 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 59460 lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/induction.ll
test/Transforms/LoopVectorize/reverse_induction.ll
|
I thought, that you can put here Builder.CreateSExtOrTrunc(Start, TruncType) , Start and Step should have the same type anyway.
You can change name from TruncType to CastType.
But if I'm wrong, you can submit this patch as is.