[all-commits] [llvm/llvm-project] 5e2d50: [libc] Don't call user comparator function for equ...

Alex Brachet via All-commits all-commits at lists.llvm.org
Fri Jul 22 10:03:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e2d5071ffd770ad8f15a57bfbf21e691a475629
      https://github.com/llvm/llvm-project/commit/5e2d5071ffd770ad8f15a57bfbf21e691a475629
  Author: Alex Brachet <abrachet at google.com>
  Date:   2022-07-22 (Fri, 22 Jul 2022)

  Changed paths:
    M libc/src/stdlib/qsort.cpp

  Log Message:
  -----------
  [libc] Don't call user comparator function for equal pointers

The standard says two equal pointers must compare equal
so there is no need to call the user comparator function
in this case.

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




More information about the All-commits mailing list