Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [BPI] Look through bitcasts in calcZeroHeuristic | Sam Parker | 2019-02-15 | 1 | -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 |