[all-commits] [llvm/llvm-project] 03fe47: ConstantFoldScalarCall3 - use const APInt& returne...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Jul 9 03:17:30 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 03fe47a29c95dbda5ecd548e35627bb16f7dfc6d
      https://github.com/llvm/llvm-project/commit/03fe47a29c95dbda5ecd548e35627bb16f7dfc6d
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-07-09 (Thu, 09 Jul 2020)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp

  Log Message:
  -----------
  ConstantFoldScalarCall3 - use const APInt& returned by getValue()

Avoids unnecessary APInt copies and silences clang tidy warning.




More information about the All-commits mailing list