summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
diff options
context:
space:
mode:
authorMatthew Simpson <mssimpso@codeaurora.org>2017-12-06 21:22:54 +0000
committerMatthew Simpson <mssimpso@codeaurora.org>2017-12-06 21:22:54 +0000
commite363d2cebbc1b880059a372d69f6ddee587f9d2d (patch)
treeb8243e5dcfa8e2fd8361e16958290cfe102dd691 /llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
parent7ae3f46539083363fa324e45a9d3284eaa7ec3df (diff)
downloadbcm5719-llvm-e363d2cebbc1b880059a372d69f6ddee587f9d2d.tar.gz
bcm5719-llvm-e363d2cebbc1b880059a372d69f6ddee587f9d2d.zip
[PGO] Make indirect call promotion a utility
This patch factors out the main code transformation utilities in the pgo-driven indirect call promotion pass and places them in Transforms/Utils. The change is intended to be a non-functional change, letting non-pgo-driven passes share a common implementation with the existing pgo-driven pass. The common utilities are used to conditionally promote indirect call sites to direct call sites. They perform the underlying transformation, and do not consider profile information. The pgo-specific details (e.g., the computation of branch weight metadata) have been left in the indirect call promotion pass. Differential Revision: https://reviews.llvm.org/D40658 llvm-svn: 319963
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud