[X86] X86TTIImpl::getIntImmCost - use APInt::isInt/isSignedInt directly
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 12 Dec 2022 15:20:18 +0000 (15:20 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 12 Dec 2022 15:32:49 +0000 (15:32 +0000)
commitf6a96bee518fd1363a594d352ba0616515e82774
tree31f0cad8e4fe0050f5c046f2404e557b18876903
parent1f8fecf26b35cef2713252fb020ff66cee248d99
[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).
llvm/lib/Target/X86/X86TargetTransformInfo.cpp