forked from OSchip/llvm-project
0aca09fc6c
The approach I followed was to emit the remark after getTreeCost concludes that SLP is profitable. I initially tried emitting them after the vectorizeRootInstruction calls in vectorizeChainsInBlock but I vaguely remember missing a few cases for example in HorizontalReduction::tryToReduce. ORE is placed in BoUpSLP so that it's available from everywhere (notably HorizontalReduction::tryToReduce). We use the first instruction in the root bundle as the locator for the remark. In order to get a sense how far the tree is spanning I've include the size of the tree in the remark. This is not perfect of course but it gives you at least a rough idea about the tree. Then you can follow up with -view-slp-tree to really see the actual tree. llvm-svn: 302811 |
||
---|---|---|
.. | ||
commute.ll | ||
gather-reduce.ll | ||
gather-root.ll | ||
getelementptr.ll | ||
horizontal.ll | ||
lit.local.cfg | ||
load-store-q.ll | ||
minimum-sizes.ll | ||
mismatched-intrinsics.ll | ||
nontemporal.ll | ||
remarks.ll | ||
sdiv-pow2.ll |