[PATCH] D26420: Encode duplication factor from loop vectorization and loop unrolling to discriminator.

Dehao Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 1 18:31:30 PST 2016


danielcdh updated this revision to Diff 80015.
danielcdh added a comment.

Updated the encoding algorithm to use the lowest bit to represent whether BaseDiscriminator/DuplicationFactor is available.

With this change, the debug info size impact is demonstrated in the last column of below:

447.dealII	8.01%	6.16%	6.92%
453.povray	6.50%	5.04%	5.38%
482.sphinx3	7.54%	5.74%	6.22%
470.lbm	0.00%	0.00%	0.00%
444.namd	6.19%	4.89%	5.14%
433.milc	23.12%	17.63%	19.96%
450.soplex	2.66%	1.99%	2.25%
445.gobmk	7.51%	5.02%	6.22%
471.omnetpp	0.52%	0.36%	0.45%
458.sjeng	10.31%	7.37%	8.38%
473.astar	5.44%	4.26%	4.46%
456.hmmer	9.74%	7.50%	8.36%
401.bzip2	9.01%	6.33%	7.72%
462.libquantum	10.79%	8.36%	8.75%
403.gcc	2.74%	1.77%	2.28%
464.h264ref	29.62%	21.14%	27.37%
483.xalancbmk	1.42%	1.12%	1.16%
429.mcf	9.55%	7.45%	7.69%
400.perlbench	1.96%	1.21%	1.73%
mean	7.81%	5.84%	6.68%


https://reviews.llvm.org/D26420

Files:
  include/llvm/IR/DebugInfoMetadata.h
  lib/Transforms/Utils/AddDiscriminators.cpp
  lib/Transforms/Utils/LoopUnroll.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp
  test/Transforms/LoopVectorize/discriminator.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26420.80015.patch
Type: text/x-patch
Size: 10773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161202/53341757/attachment.bin>


More information about the llvm-commits mailing list