LoopVectorize Pass uses reciprocal of block probability as 2 for all predicated blocks.Here, we have used BlockFrequencyInfo to get the block probabilities
Worked in collaboration with Aditya Kumar
Paths
| Differential D36115
[Loop Vectorize] Block Probability for Predicated Blocks Needs ReviewPublic Authored by DIVYA on Jul 31 2017, 2:59 PM.
Details
Diff Detail Event TimelineComment Actions I'm just curious, did you run any benchmarks with this change? I think it's quite clear that using the block frequencies is a good idea, but it would be awesome to know if/by how much it improves things :) Also, is it worth adding a dedicated test case making sure the frequencies are used by the cost model as expected?
Comment Actions
mssimpso added inline comments.
Revision Contents
Diff 109182 lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/AArch64/aarch64-predication.ll
test/Transforms/LoopVectorize/if-pred-blockFreq.ll
|
It looks like this commit fixes this TODO, remove the TODO?