[all-commits] [llvm/llvm-project] 474b20: [LLParser] Avoid unnecessary AttrBuilder<->Attribu...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Dec 18 08:57:35 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 474b20b45053aa790bb425528b3f98ebd2f75120
      https://github.com/llvm/llvm-project/commit/474b20b45053aa790bb425528b3f98ebd2f75120
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2021-12-18 (Sat, 18 Dec 2021)

  Changed paths:
    M llvm/lib/AsmParser/LLParser.cpp

  Log Message:
  -----------
  [LLParser] Avoid unnecessary AttrBuilder<->AttributeSet roundtrip (NFC)

This was creating an AttributeSet from an AttrBuilder, and then
(implicitly) constructing an AttrBuilder from the AttributeSet,
and then the method would internally convert that back into an
AttributeSet. Instead, directly pass the AttrBuilder.




More information about the All-commits mailing list