[all-commits] [llvm/llvm-project] f6a96b: [X86] X86TTIImpl::getIntImmCost - use APInt::isInt...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Dec 12 07:33:06 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6a96bee518fd1363a594d352ba0616515e82774
      https://github.com/llvm/llvm-project/commit/f6a96bee518fd1363a594d352ba0616515e82774
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-12-12 (Mon, 12 Dec 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp

  Log Message:
  -----------
  [X86] X86TTIImpl::getIntImmCost - use APInt::isInt/isSignedInt directly

Avoid some getSExtValue()/getZExtValue() calls

Hopefully we can remove some of the getBitWidth() constraints as well, as many are just there as a proxy for legal types (albeit assuming x86_64).




More information about the All-commits mailing list