[all-commits] [llvm/llvm-project] dc352a: [IR] Avoid unnecessary canBeFreed() calls (NFC) (#...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Jun 10 00:12:18 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dc352aa211095ddea1292fb99be867bd6ec5f65c
https://github.com/llvm/llvm-project/commit/dc352aa211095ddea1292fb99be867bd6ec5f65c
Author: Nikita Popov <npopov at redhat.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)
Changed paths:
M llvm/lib/IR/Value.cpp
Log Message:
-----------
[IR] Avoid unnecessary canBeFreed() calls (NFC) (#202685)
Do not call canBeFreed() if the value can't ever be freed (e.g. for
globals) or if there are no known dereferenceable bytes. The check is
relatively expensive.
(The compile-time impact is only visible when enabling deref-at-point
semantics.)
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