aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-07-15 09:30:38 +0200
committerGitHub <noreply@github.com>2025-07-15 09:30:38 +0200
commitb0769aa290fd11d1154f7d2779e59bfcc4314e8f (patch)
tree6d0f65413f1cb7f68a6ac02ed379427cbc001e81 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent13d818806dbe24d58d92d9f533c61afab0e429a1 (diff)
downloadllvm-b0769aa290fd11d1154f7d2779e59bfcc4314e8f.zip
llvm-b0769aa290fd11d1154f7d2779e59bfcc4314e8f.tar.gz
llvm-b0769aa290fd11d1154f7d2779e59bfcc4314e8f.tar.bz2
[IR] Make intrinsic checks more efficient (NFC) (#148682)
Directly cast the callee operand instead of going through getCalledFunction(). We can do this because for intrinsics the function type between the call and the function is guaranteed to match. This is a minor compile-time improvement as is, but has a much bigger impact with a future change that makes getCalledFunction() more expensive. There is some code duplication between these four uses, but they are each just different enough that representing one in terms of another would be less efficient.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions