[clang] Optimize Cache Insertion with try_emplace for Reduced Lookups (PR #131402)

2025-03-15 Thread Ayush Pareek via cfe-commits
https://github.com/ayushpareek2003 commented: Removed unnecessary spaces https://github.com/llvm/llvm-project/pull/131402 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Optimize Cache Insertion with try_emplace for Reduced Lookups (PR #131402)

2025-03-15 Thread Ayush Pareek via cfe-commits
https://github.com/ayushpareek2003 updated https://github.com/llvm/llvm-project/pull/131402 >From 28f6d8b6677e32f45f5fa55c7c73df5a841d7127 Mon Sep 17 00:00:00 2001 From: Ayush Pareek Date: Sat, 15 Mar 2025 03:43:18 +0530 Subject: [PATCH 1/2] Optimize Cache Insertion with try_emplace for Reduced

[clang] Optimize Cache Insertion with try_emplace for Reduced Lookups (PR #131402)

2025-03-15 Thread Ayush Pareek via cfe-commits
https://github.com/ayushpareek2003 updated https://github.com/llvm/llvm-project/pull/131402 >From 28f6d8b6677e32f45f5fa55c7c73df5a841d7127 Mon Sep 17 00:00:00 2001 From: Ayush Pareek Date: Sat, 15 Mar 2025 03:43:18 +0530 Subject: [PATCH] Optimize Cache Insertion with try_emplace for Reduced Loo

[clang] Optimize Cache Insertion with try_emplace for Reduced Lookups (PR #131402)

2025-03-15 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff fbf0276b6a7a7a4508c373cf87fc349569652659 28f6d8b6677e32f45f5fa55c7c73df5a841d7127 --e

[clang] Optimize Cache Insertion with try_emplace for Reduced Lookups (PR #131402)

2025-03-14 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] Optimize Cache Insertion with try_emplace for Reduced Lookups (PR #131402)

2025-03-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ayush Pareek (ayushpareek2003) Changes for the functions- insertEntryForFilename() , insertRealPathForFilename() Replaced `Cache.insert()` with `Cache.try_emplace()` to reduce redundant lookups Improved efficiency by avoiding unnecessary

[clang] Optimize Cache Insertion with try_emplace for Reduced Lookups (PR #131402)

2025-03-14 Thread Ayush Pareek via cfe-commits
https://github.com/ayushpareek2003 created https://github.com/llvm/llvm-project/pull/131402 for the functions- insertEntryForFilename() , insertRealPathForFilename() Replaced `Cache.insert()` with `Cache.try_emplace()` to reduce redundant lookups Improved efficiency by avoiding unnecessary co