1. Apr 14, 2018
    • Simon Dardis's avatar
      [mips] Materialize constants for multiplication · 9ec9f444
      Simon Dardis authored
      Previously, the MIPS backend would alwyas break down constant multiplications
      into a series of shifts, adds, and subs. This patch changes that so the cost of
      doing so is estimated.
      
      The cost is estimated against worst case constant materialization and retrieving
      the results from the HI/LO registers.
      
      For cases where the value type of the multiplication is not legal, the cost of
      legalization is estimated and is accounted for before performing the
      optimization of breaking down the constant
      
      This resolves PR36884.
      
      Thanks to npl for reporting the issue!
      
      Reviewers: abeserminji, smaksimovic
      
      Differential Revision: https://reviews.llvm.org/D45316
      
      llvm-svn: 330037
      9ec9f444
    • Rafael Espindola's avatar
      Reduce code duplication. · ea2c7836
      Rafael Espindola authored
      getVA was already implemented in the base class.
      
      llvm-svn: 330036
      ea2c7836
  2. Apr 13, 2018