... and do a tad of tidyup while we're at it. Because StartIdx must now be zero, there's no difference between Count and EndIdx.
Moving this to helper functions reduces the complexity of createEmptyLoop.
Paths
| Differential D12475
[LV] Pull creation of trip counts into a helper function. ClosedPublic Authored by jmolloy on Aug 30 2015, 4:05 AM.
Details
Summary ... and do a tad of tidyup while we're at it. Because StartIdx must now be zero, there's no difference between Count and EndIdx. Moving this to helper functions reduces the complexity of createEmptyLoop.
Diff Detail
Event Timelinejmolloy updated this object. Comment Actions Hi James, Comments inline:
This revision is now accepted and ready to land.Sep 1 2015, 11:45 PM
Revision Contents
Diff 33616 lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/debugloc.ll
|
I'll let Michael give final OK but since you're cleaning this up, it would be good to finally rename this to BackedgeTakenCount or something. Later the code redefines this same variable to the *real* exit count which is pretty crazy. These two values should be different variables.