[all-commits] [llvm/llvm-project] b0769a: [IR] Make intrinsic checks more efficient (NFC) (#...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Jul 15 00:30:59 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b0769aa290fd11d1154f7d2779e59bfcc4314e8f
https://github.com/llvm/llvm-project/commit/b0769aa290fd11d1154f7d2779e59bfcc4314e8f
Author: Nikita Popov <npopov at redhat.com>
Date: 2025-07-15 (Tue, 15 Jul 2025)
Changed paths:
M llvm/include/llvm/IR/IntrinsicInst.h
M llvm/include/llvm/IR/PatternMatch.h
M llvm/lib/IR/Instructions.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list