]> granicus.if.org Git - llvm/commit
[AArch64] Update successor probabilities after ccmp-conversion
authorMatthew Simpson <mssimpso@codeaurora.org>
Tue, 27 Jun 2017 15:00:22 +0000 (15:00 +0000)
committerMatthew Simpson <mssimpso@codeaurora.org>
Tue, 27 Jun 2017 15:00:22 +0000 (15:00 +0000)
commit64db11515acbb5bace4b70395b76412d13038c59
tree1a956335f09f74b019c2364b892782c266affd05
parent383b68fd7f3f5606fc3e7be3d3b07ac52471ab32
[AArch64] Update successor probabilities after ccmp-conversion

This patch modifies the conditional compares pass so that it keeps successor
probabilities up-to-date after the conversion. Previously, successor
probabilities were being normalized to a uniform distribution, even though they
may have been heavily biased prior to the conversion (e.g., if one of the edges
was the back edge of a loop). This loss of information affected passes later in
the pipeline.

Differential Revision: https://reviews.llvm.org/D34109

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306412 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ConditionalCompares.cpp
test/CodeGen/AArch64/arm64-ccmp.ll
test/CodeGen/AArch64/ccmp-successor-probs.mir [new file with mode: 0644]