]> granicus.if.org Git - llvm/commit
[InlineCost] Enable the new switch cost heuristic
authorJun Bum Lim <junbuml@codeaurora.org>
Fri, 2 Jun 2017 20:42:54 +0000 (20:42 +0000)
committerJun Bum Lim <junbuml@codeaurora.org>
Fri, 2 Jun 2017 20:42:54 +0000 (20:42 +0000)
commit2961ee384e1e6377fcef7ce99505c92ee13f54d3
tree8a04380b3d55394fd1972db2e9e1a7091a74b75f
parent37aaa827f4fc90e2d9153d9e8941a424562346ad
[InlineCost] Enable the new switch cost heuristic

Summary:
This is to enable the new switch inline cost heuristic (r301649) by removing the
old heuristic as well as the flag itself.
In my experiment for LLVM test suite and spec2000/2006, +17.82% performance and
8% code size reduce was observed in spec2000/vertex with O3 LTO in AArch64.
No significant code size / performance regression was found in O3/O2/Os. No
significant complain was reported from the llvm-dev thread.

Reviewers: hans, chandlerc, eraman, haicheng, mcrosier, bmakam, eastig, ddibyend, echristo

Reviewed By: echristo

Subscribers: javed.absar, kristof.beyls, echristo, aemerson, rengolin, mehdi_amini

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304594 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InlineCost.cpp
test/Transforms/Inline/AArch64/switch.ll