[PATCH] D25333: [LV] Avoid rounding errors for predicated instruction costs

Matthew Simpson via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 6 10:21:30 PDT 2016


mssimpso created this revision.
mssimpso added reviewers: anemet, mkuper, gilr.
mssimpso added subscribers: llvm-commits, mcrosier.
Herald added a subscriber: mzolotukhin.

This patch modifies the cost calculation of predicated instructions (div and rem) to avoid the accumulation of rounding errors due to multiple truncating integer divisions. The calculation for predicated stores will be addressed in a follow-on patch, since we currently don't scale the cost of predicated stores by block probability.


https://reviews.llvm.org/D25333

Files:
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/AArch64/predication_costs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25333.73816.patch
Type: text/x-patch
Size: 7810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161006/75e30dc3/attachment.bin>


More information about the llvm-commits mailing list