[llvm] [llvm] using wrapper llvm::sort(nfc) (PR #151000)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 30 00:15:01 PDT 2025
Zhenhang1213 wrote:
> Please change the sort with a comparator, such as:
>
> https://github.com/llvm/llvm-project/blob/7162f191b8ce68dddb60e3f129f786afb08b2bbb/llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp#L239-L241
>
> And the code below can be replaced with `llvm::sort(operands());`
>
> https://github.com/llvm/llvm-project/blob/0d05e55f69426c38f42f911a11ac540896577e06/llvm/lib/Transforms/Scalar/GVNSink.cpp#L311
OK
https://github.com/llvm/llvm-project/pull/151000
More information about the llvm-commits
mailing list