[all-commits] [llvm/llvm-project] d6a138: [llvm][NFC] Refactor AutoUpdater case 'e'

Nathan Sidwell via All-commits all-commits at lists.llvm.org
Sun Aug 20 08:28:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d6a1388d6fba33da1e3a99589d5f26cfb2cf4d23
      https://github.com/llvm/llvm-project/commit/d6a1388d6fba33da1e3a99589d5f26cfb2cf4d23
  Author: Nathan Sidwell <nathan at acm.org>
  Date:   2023-08-20 (Sun, 20 Aug 2023)

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

  Log Message:
  -----------
  [llvm][NFC] Refactor AutoUpdater case 'e'

It is more efficient to gate on the prefix before checking for the
individual cases. Also, the regexps weren't consistent about escaping '.'.

Differential Revision: https://reviews.llvm.org/D157923

Reviewed By: arsenm




More information about the All-commits mailing list