aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorKyungwoo Lee <kyulee@meta.com>2024-08-28 07:09:54 -0700
committerGitHub <noreply@github.com>2024-08-28 07:09:54 -0700
commit140381d4bf25c1fda03028728f135fe9d886ab13 (patch)
tree919d3f93eda968d40c839a63dafb15c7883d640a /clang/lib/CodeGen/CodeGenModule.cpp
parentcc0f2d540be808f999037f873ecd968eeec28c09 (diff)
downloadllvm-140381d4bf25c1fda03028728f135fe9d886ab13.zip
llvm-140381d4bf25c1fda03028728f135fe9d886ab13.tar.gz
llvm-140381d4bf25c1fda03028728f135fe9d886ab13.tar.bz2
[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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions