[all-commits] [llvm/llvm-project] db6961: [FuncitonComparator] Clamp StringRef compare outpu...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Sun Jan 15 16:47:31 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db6961db7a0d44da3dd7d0a604f43fc7db8b21b5
      https://github.com/llvm/llvm-project/commit/db6961db7a0d44da3dd7d0a604f43fc7db8b21b5
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2023-01-16 (Mon, 16 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/Utils/FunctionComparator.cpp

  Log Message:
  -----------
  [FuncitonComparator] Clamp StringRef compare output to [-1,1]

The comparison can have different values (but same sign) on big endian
platforms, avoid that to make the unit test green there.




More information about the All-commits mailing list