[all-commits] [llvm/llvm-project] 9a3e8b: extractConstantWithoutWrapping - use const APInt& ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Jul 10 02:25:20 PDT 2020


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

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

  Log Message:
  -----------
  extractConstantWithoutWrapping - use const APInt& returned by SCEVConstant::getAPInt()

Avoids unnecessary APInt copies and silences clang tidy warning.




More information about the All-commits mailing list