Page MenuHomePhabricator

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

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



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:
See this thread for context:

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.