[PATCH] D31906: [LV] Model if-converted phi node cost

Matthew Simpson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 10 14:27:40 PDT 2017


mssimpso created this revision.
Herald added a subscriber: mzolotukhin.

Phi nodes in non-header blocks are converted to select instructions after if-conversion. This patch updates the cost model to account for the selects.


https://reviews.llvm.org/D31906

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/phi-cost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31906.94742.patch
Type: text/x-patch
Size: 4204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170410/0e786aca/attachment.bin>


More information about the llvm-commits mailing list