Page MenuHomePhabricator

[NFC][InstructionCost] Use InstructionCost in Transforms/Scalar/RewriteStatepointsForGC.cpp
ClosedPublic

Authored by david-arm on Jan 12 2021, 3:05 AM.

Details

Summary

In places where we calculate costs using TTI.getXXXCost() interfaces
I have changed the code to use InstructionCost instead of unsigned.
The change is non functional since InstructionCost behaves in the
same way as an integer for valid costs. Currently the getXXXCost()
functions used in this file do not return invalid costs.

See this patch for the introduction of the type: https://reviews.llvm.org/D91174
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html

Diff Detail

Event Timeline

david-arm created this revision.Jan 12 2021, 3:05 AM
david-arm requested review of this revision.Jan 12 2021, 3:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2021, 3:05 AM
This revision is now accepted and ready to land.Jan 12 2021, 3:18 PM
This revision was automatically updated to reflect the committed changes.