[all-commits] [llvm/llvm-project] 140381: [MachineOutliner][NFC] Remove unnecessary Repeated...

Kyungwoo Lee via All-commits all-commits at lists.llvm.org
Wed Aug 28 07:10:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 140381d4bf25c1fda03028728f135fe9d886ab13
      https://github.com/llvm/llvm-project/commit/140381d4bf25c1fda03028728f135fe9d886ab13
  Author: Kyungwoo Lee <kyulee at meta.com>
  Date:   2024-08-28 (Wed, 28 Aug 2024)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

  Log Message:
  -----------
  [MachineOutliner][NFC] Remove unnecessary RepeatedSequenceLocs.clear() (#106171)

- When `getOutliningCandidateInfo()` returns `std::nullopt` (meaning no
`OutlinedFunction` is created), there is no need to clear the input
argument, `RepeatedSequenceLocs`, as it's already being cleared in the
main loop of `findCandidates()`.
- Replaced `2` by `MinRepeats`, which I missed from
https://github.com/llvm/llvm-project/pull/105398



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