aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorMatthew Simpson <mssimpso@codeaurora.org>2017-02-13 16:48:00 +0000
committerMatthew Simpson <mssimpso@codeaurora.org>2017-02-13 16:48:00 +0000
commit7b7f40297f23cbadbdd7e267b7cbf71d6bb3f864 (patch)
treed8c2c0f5c7717c7a78cd1d33f6a7eb35f2183c59 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parentd9858dfdee407fab1c356288010b22dfef91942c (diff)
downloadllvm-7b7f40297f23cbadbdd7e267b7cbf71d6bb3f864.zip
llvm-7b7f40297f23cbadbdd7e267b7cbf71d6bb3f864.tar.gz
llvm-7b7f40297f23cbadbdd7e267b7cbf71d6bb3f864.tar.bz2
[LV] Extend trunc optimization to all IVs with constant integer steps
This patch extends the optimization of truncations whose operand is an induction variable with a constant integer step. Previously we were only applying this optimization to the primary induction variable. However, the cost model assumes the optimization is applied to the truncation of all integer induction variables (even regardless of step type). The transformation is now applied to the other induction variables, and I've updated the cost model to ensure it is better in sync with the transformation we actually perform. Differential Revision: https://reviews.llvm.org/D29847 llvm-svn: 294967
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions