[all-commits] [llvm/llvm-project] dac933: [IR] Base attribute queries on Argument::getAttrib...

Nikita Popov via All-commits all-commits at lists.llvm.org
Tue Jun 9 23:53:44 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dac9338f7af15561910137523f73cd93422c575b
      https://github.com/llvm/llvm-project/commit/dac9338f7af15561910137523f73cd93422c575b
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2026-06-10 (Wed, 10 Jun 2026)

  Changed paths:
    M llvm/lib/IR/Function.cpp

  Log Message:
  -----------
  [IR] Base attribute queries on Argument::getAttributes() (NFC) (#202686)

Fetch the AttributeSet for the argument and then do queries on that.
This is both less code than going through the function AttributeList,
and avoids redundant AttributeSet fetches in case where multiple
attributes are queried.



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