[PATCH] D38339: [LV] Fix PR34711 - handle widening of instruction ranges in the presence of sinking casts
Ayal Zaks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 16:53:39 PDT 2017
Ayal created this revision.
The "Sink casts to unravel first order recurrence" optimization of r306884 interferes with optimizing VPWidenRecipes for intervals of Instructions. Make sure the LastWidenRecipe we're attempting to extend is indeed the last recipe, covering the previous Instruction; otherwise extending it will effectively hoist the current Instruction, which may un-sink such a cast.
https://reviews.llvm.org/D38339
Files:
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/first-order-recurrence.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38339.116904.patch
Type: text/x-patch
Size: 6782 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170927/21a82ca4/attachment.bin>
More information about the llvm-commits
mailing list