[PATCH] D94427: [NFC][InstructionCost] Use InstructionCost in lib/Transforms/IPO/IROutliner.cpp

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 12 05:08:23 PST 2021


david-arm updated this revision to Diff 316067.
david-arm added a comment.

- I realised that instead of calling getValue() and asserting the cost is valid I can just change a few functions to return InstructionCost instead. The code simply compares the benefit and cost and decides to outline based upon that.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94427/new/

https://reviews.llvm.org/D94427

Files:
  llvm/include/llvm/Transforms/IPO/IROutliner.h
  llvm/lib/Transforms/IPO/IROutliner.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94427.316067.patch
Type: text/x-patch
Size: 8567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210112/0ea5d86c/attachment.bin>


More information about the llvm-commits mailing list