summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis/BranchProbabilityInfo/zero_heuristics.ll
Commit message (Collapse)AuthorAgeFilesLines
* [BPI] Look through bitcasts in calcZeroHeuristicSam Parker2019-02-151-0/+103
Constant hoisting may have hidden a constant behind a bitcast so that it isn't folded into its users. However, this prevents BPI from calculating some of its heuristics that are based upon constant values. So, I've added a simple helper function to look through these casts. Differential Revision: https://reviews.llvm.org/D58166 llvm-svn: 354119
OpenPOWER on IntegriCloud