[all-commits] [llvm/llvm-project] 4cd485: [NFC][InstructionCost] Use InstructionCost in Tran...
    david-arm via All-commits 
    all-commits at lists.llvm.org
       
    Wed Jan 13 01:47:05 PST 2021
    
    
  
  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cd48535eca06245c89a9158844bb177c6f8eb63
      https://github.com/llvm/llvm-project/commit/4cd48535eca06245c89a9158844bb177c6f8eb63
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2021-01-13 (Wed, 13 Jan 2021)
  Changed paths:
    M llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  Log Message:
  -----------
  [NFC][InstructionCost] Use InstructionCost in Transforms/Scalar/RewriteStatepointsForGC.cpp
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
Differential revision: https://reviews.llvm.org/D94484
    
    
More information about the All-commits
mailing list