[all-commits] [llvm/llvm-project] dd879f: [DAG] Use APInt::extractBits instead of lshr().tru...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Feb 16 05:53:17 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd879f7dc9f5df614431358e11f21c948429eda6
      https://github.com/llvm/llvm-project/commit/dd879f7dc9f5df614431358e11f21c948429eda6
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-02-16 (Tue, 16 Feb 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

  Log Message:
  -----------
  [DAG] Use APInt::extractBits instead of lshr().trunc(). NFCI.

Avoids so many APInt instances by directly using the APInt reference from getAPIntValue.


  Commit: 420420de57ccbd78805ed86df49b6c19088f99c4
      https://github.com/llvm/llvm-project/commit/420420de57ccbd78805ed86df49b6c19088f99c4
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-02-16 (Tue, 16 Feb 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

  Log Message:
  -----------
  [DAG] Avoid APInt copies by directly using the APInt reference from getAPIntValue. NFCI.


Compare: https://github.com/llvm/llvm-project/compare/ba1e150d03ca...420420de57cc


More information about the All-commits mailing list