diff options
author | Nikita Popov <npopov@redhat.com> | 2025-07-15 09:30:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-15 09:30:38 +0200 |
commit | b0769aa290fd11d1154f7d2779e59bfcc4314e8f (patch) | |
tree | 6d0f65413f1cb7f68a6ac02ed379427cbc001e81 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 13d818806dbe24d58d92d9f533c61afab0e429a1 (diff) | |
download | llvm-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