This is an archive of the discontinued LLVM Phabricator instance.

LSR: Calculate instruction cost only if InsnsCost is set to true (NFC)
ClosedPublic

Authored by evstupac on Jun 5 2017, 2:52 PM.

Details

Summary

The patch supports D30561 and D30562.
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.

The patch is NFC and I'm going to commit it today.

Diff Detail

Repository
rL LLVM

Event Timeline

evstupac created this revision.Jun 5 2017, 2:52 PM
This revision was automatically updated to reflect the committed changes.