]> granicus.if.org Git - llvm/commit
[LV] Refactor ILV.vectorize{Loop}() by introducing LVP.executePlan(); NFC
authorAyal Zaks <ayal.zaks@intel.com>
Thu, 11 May 2017 11:36:33 +0000 (11:36 +0000)
committerAyal Zaks <ayal.zaks@intel.com>
Thu, 11 May 2017 11:36:33 +0000 (11:36 +0000)
commit7a3330e1011b87f67119b879c065720522c2ebd2
tree0d1ac8524fc81db1a5aec76acdb61ee14b751b7b
parenta0d77192f69d829915c27d19de52ce35ca28ce4b
[LV] Refactor ILV.vectorize{Loop}() by introducing LVP.executePlan(); NFC

Introduce LoopVectorizationPlanner.executePlan(), replacing ILV.vectorize() and
refactoring ILV.vectorizeLoop(). Method collectDeadInstructions() is moved from
ILV to LVP. These changes facilitate building VPlans and using them to generate
code, following https://reviews.llvm.org/D28975 and its tentative breakdown.

Method ILV.createEmptyLoop() is renamed ILV.createVectorizedLoopSkeleton() to
improve clarity; it's contents remain intact.

Differential Revision: https://reviews.llvm.org/D32200

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302790 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp