]> granicus.if.org Git - llvm/commit
LSR: Calculate instruction cost only if InsnsCost is set to true (NFC)
authorEvgeny Stupachenko <evstupac@gmail.com>
Mon, 5 Jun 2017 22:44:18 +0000 (22:44 +0000)
committerEvgeny Stupachenko <evstupac@gmail.com>
Mon, 5 Jun 2017 22:44:18 +0000 (22:44 +0000)
commitde4b0d7fbb944b7050eeeeacf2a5a96a305a4085
tree0b7a2c25b150396444838da4bd5328eb30292958
parent5191e5027ce2def9a6fa0dac7f9830b990b4f941
LSR: Calculate instruction cost only if InsnsCost is set to true (NFC)

Summary:

The patch guard all instruction cost calculations with InsnCosts (-lsr-insns-cost) option.
Currently even if the option set to false we calculate and print (in debug mode) instruction costs.

Reviewers: qcolombet

Differential Revision: http://reviews.llvm.org/D33914

From: Evgeny Stupachenko <evstupac@gmail.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304746 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp