summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/AddDiscriminators/call-nested.ll
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2017-02-10 21:09:07 +0000
committerDehao Chen <dehao@google.com>2017-02-10 21:09:07 +0000
commitfb02f7140a7c6db60f7b82b8f0d73b1477b289de (patch)
treeb9d305b9fbd0fe8a859ea25a4eadfde2faf6ebc5 /llvm/test/Transforms/AddDiscriminators/call-nested.ll
parent918ed871df7398c1c4a384787df8728532ece1db (diff)
downloadbcm5719-llvm-fb02f7140a7c6db60f7b82b8f0d73b1477b289de.tar.gz
bcm5719-llvm-fb02f7140a7c6db60f7b82b8f0d73b1477b289de.zip
Encode duplication factor from loop vectorization and loop unrolling to discriminator.
Summary: This patch starts the implementation as discuss in the following RFC: http://lists.llvm.org/pipermail/llvm-dev/2016-October/106532.html When optimization duplicates code that will scale down the execution count of a basic block, we will record the duplication factor as part of discriminator so that the offline process tool can find the duplication factor and collect the accurate execution frequency of the corresponding source code. Two important optimization that fall into this category is loop vectorization and loop unroll. This patch records the duplication factor for these 2 optimizations. The recording will be guarded by a flag encode-duplication-in-discriminators, which is off by default. Reviewers: probinson, aprantl, davidxl, hfinkel, echristo Reviewed By: hfinkel Subscribers: mehdi_amini, anemet, mzolotukhin, llvm-commits Differential Revision: https://reviews.llvm.org/D26420 llvm-svn: 294782
Diffstat (limited to 'llvm/test/Transforms/AddDiscriminators/call-nested.ll')
-rw-r--r--llvm/test/Transforms/AddDiscriminators/call-nested.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/AddDiscriminators/call-nested.ll b/llvm/test/Transforms/AddDiscriminators/call-nested.ll
index 481d6f26004..4d5145abafe 100644
--- a/llvm/test/Transforms/AddDiscriminators/call-nested.ll
+++ b/llvm/test/Transforms/AddDiscriminators/call-nested.ll
@@ -47,4 +47,4 @@ attributes #1 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-
!14 = !DILocation(line: 4, column: 3, scope: !4)
; CHECK: ![[CALL2]] = !DILocation(line: 4, column: 10, scope: ![[CALL2BLOCK:[0-9]+]])
-; CHECK: ![[CALL2BLOCK]] = !DILexicalBlockFile({{.*}} discriminator: 1)
+; CHECK: ![[CALL2BLOCK]] = !DILexicalBlockFile({{.*}} discriminator: 2)
OpenPOWER on IntegriCloud